aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/jenkins_sysmobts.sh
blob: bce0690332c22c19f2e94fc837cd6c84debf9d1a (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/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 layer1-api;
then
  git clone git://git.sysmocom.de/sysmo-bts/layer1-api.git layer1-api
fi

cd layer1-api
git fetch origin
if [ $FIRMWARE_VERSION = "master" ];
then
git reset --hard origin/master
else
git reset --hard $FIRMWARE_VERSION
fi
mkdir -p "$inst/include/sysmocom/femtobts"
cp include/*.h "$inst/include/sysmocom/femtobts/"

cd "$base"

set +x
echo
echo
echo
echo " =============================== osmo-bts-sysmo ==============================="
echo
set -x

autoreconf --install --force
./configure --enable-sysmocom-bts --with-openbsc="$deps/openbsc/openbsc/include"
$MAKE $PARALLEL_MAKE
$MAKE check \
  || cat-testlogs.sh
DISTCHECK_CONFIGURE_FLAGS="--enable-sysmocom-bts --with-openbsc=$deps/openbsc/openbsc/include" \
  $MAKE distcheck \
  || cat-testlogs.sh

# This will not work for the femtobts
if [ $FIRMWARE_VERSION != "femtobts_v2.7" ]; then
  $MAKE -C contrib/sysmobts-calib
fi