osmo-bts-trx: Add support for osmo-trx-lms

Change-Id: I44db0fe4592109ecb665e1880806d90379da64f7
This commit is contained in:
Pau Espin 2018-08-27 18:45:01 +02:00
parent 16abefb35c
commit e789f0c088
4 changed files with 57 additions and 2 deletions

View File

@ -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"

View File

@ -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

View File

@ -0,0 +1,4 @@
resources:
bts:
- label: LimeSDR-USB
type: osmo-bts-trx

View File

@ -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