lc15: add jenkins helper

Add jenkins build helper for lc15 and separate header with BTS-agnostic
functions.

Change-Id: Ib47f5a6cc88e784c5662b0dab4ddc03ce9a35132
Related: SYS#3682
This commit is contained in:
Max 2017-06-20 11:59:27 +02:00 committed by Harald Welte
parent 5b87144f91
commit 71ad40c647
2 changed files with 41 additions and 0 deletions

View File

@ -18,6 +18,10 @@ case "$bts_model" in
./contrib/jenkins_oct.sh
;;
lc15)
./contrib/jenkins_lc15.sh
;;
trx)
./contrib/jenkins_bts_trx.sh
;;

37
contrib/jenkins_lc15.sh Normal file
View File

@ -0,0 +1,37 @@
#!/bin/sh
# shellcheck source=contrib/jenkins_common.sh
. $(dirname "$0")/jenkins_common.sh
osmo-build-dep.sh libosmocore
export PKG_CONFIG_PATH="$inst/lib/pkgconfig:$PKG_CONFIG_PATH"
export LD_LIBRARY_PATH="$inst/lib"
osmo-build-dep.sh libosmo-abis
cd "$deps"
if ! test -d litecell15-fw;
then
git clone https://gitlab.com/nrw_litecell15/litecell15-fw.git
fi
cd litecell15-fw
git fetch origin
git reset --hard origin/$FIRMWARE_VERSION
cd "$base"
set +x
echo
echo
echo
echo " =============================== osmo-bts-lc15 ==============================="
echo
set -x
autoreconf --install --force
./configure --with-openbsc="$deps/openbsc/openbsc/include" --with-litecell15="$deps/litecell15-fw/" --enable-litecell15
$MAKE "$PARALLEL_MAKE"
$MAKE check || cat-testlogs.sh
DISTCHECK_CONFIGURE_FLAGS="--with-litecell15=$deps/litecell15-fw/ --with-openbsc=$deps/openbsc/openbsc/include --enable-litecell15" $MAKE distcheck || cat-testlogs.sh