aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/jenkins_lc15.sh
blob: a0eef43a58f1d63f27a21ba2eb82379ae2b704c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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