aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcontrib/jenkins-build-osmo-trx.sh30
-rw-r--r--example/resources.conf.prod14
-rw-r--r--example/scenarios/trx-lms.conf4
-rw-r--r--src/osmo_gsm_tester/bts_osmotrx.py11
4 files changed, 57 insertions, 2 deletions
diff --git a/contrib/jenkins-build-osmo-trx.sh b/contrib/jenkins-build-osmo-trx.sh
index 67fca35..f15a9e0 100755
--- a/contrib/jenkins-build-osmo-trx.sh
+++ b/contrib/jenkins-build-osmo-trx.sh
@@ -4,8 +4,34 @@ base="$PWD"
name="osmo-trx"
. "$(dirname "$0")/jenkins-build-common.sh"
+build_repo_limesuite() {
+set +x; echo "
+
+====================== $dep
+
+"; set -x
+
+prev_git_url="${git_url}"
+git_url="https://github.com/myriadrf/"
+have_repo "LimeSuite" "master"
+git_url="${prev_git_url}"
+cd "LimeSuite"
+
+set +x; echo; echo; set -x
+mkdir -p builddir && cd builddir
+set +x; echo; echo; set -x
+cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix ../
+set +x; echo; echo; set -x
+make -j5
+set +x; echo; echo; set -x
+make install
+}
+
+# We want to use LimSuite installed by debian repos
+# build_repo_limesuite
+
# AddressSanitizer is not enabled on purpose since overhead affects the clocking.
build_repo libosmocore --disable-doxygen
-build_repo osmo-trx --without-sse --with-uhd
+build_repo osmo-trx --without-sse --with-uhd --with-lms
-create_bin_tgz osmo-trx-uhd
+create_bin_tgz "osmo-trx-uhd osmo-trx-lms"
diff --git a/example/resources.conf.prod b/example/resources.conf.prod
index e69726a..22134e7 100644
--- a/example/resources.conf.prod
+++ b/example/resources.conf.prod
@@ -26,12 +26,26 @@ bts:
band: GSM-1800
ciphers: [a5_0, a5_1]
osmo_trx:
+ type: uhd
launch_trx: true
remote_user: jenkins
trx_ip: 10.42.42.116
clock_reference: external
multi_arfcn: true
+- label: LimeSDR-USB
+ type: osmo-bts-trx
+ ipa_unit_id: 11
+ addr: 10.42.42.53
+ band: GSM-1800
+ ciphers: [a5_0, a5_1]
+ osmo_trx:
+ type: lms
+ launch_trx: true
+ remote_user: jenkins
+ trx_ip: 10.42.42.117
+ clock_reference: external
+
- label: sysmoCell 5000
type: osmo-bts-trx
ipa_unit_id: 7
diff --git a/example/scenarios/trx-lms.conf b/example/scenarios/trx-lms.conf
new file mode 100644
index 0000000..15802db
--- /dev/null
+++ b/example/scenarios/trx-lms.conf
@@ -0,0 +1,4 @@
+resources:
+ bts:
+ - label: LimeSDR-USB
+ type: osmo-bts-trx
diff --git a/src/osmo_gsm_tester/bts_osmotrx.py b/src/osmo_gsm_tester/bts_osmotrx.py
index 79c541d..92b726c 100644
--- a/src/osmo_gsm_tester/bts_osmotrx.py
+++ b/src/osmo_gsm_tester/bts_osmotrx.py
@@ -165,6 +165,7 @@ class OsmoTrx(log.Origin, metaclass=ABCMeta):
def get_instance_by_type(cls, type, suite_run, conf):
KNOWN_OSMOTRX_TYPES = {
'uhd': OsmoTrxUHD,
+ 'lms': OsmoTrxLMS,
}
osmo_trx_class = KNOWN_OSMOTRX_TYPES.get(type)
return osmo_trx_class(suite_run, conf)
@@ -281,4 +282,14 @@ class OsmoTrxUHD(OsmoTrx):
def binary_name(self):
return OsmoTrxUHD.BIN_TRX
+class OsmoTrxLMS(OsmoTrx):
+ BIN_TRX = 'osmo-trx-lms'
+
+ def __init__(self, suite_run, conf):
+ super().__init__(suite_run, conf)
+ self.conf['osmo_trx']['channels'][0]['rx_path'] = 'LNAW'
+
+ def binary_name(self):
+ return OsmoTrxLMS.BIN_TRX
+
# vim: expandtab tabstop=4 shiftwidth=4