summaryrefslogtreecommitdiffstats
path: root/contrib/jenkins-build-osmo-bts-sysmo.sh
blob: e636893d2c16cd0c677a71a5fcdf924a61f82c31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
set -e -x

poky="/opt/poky/1.5.4"
. "$poky/environment-setup-armv5te-poky-linux-gnueabi"

# Cross-compilation: all installations need to be put in the sysmo SDK sysroot
export DESTDIR="$poky/sysroots/armv5te-poky-linux-gnueabi"

base="$PWD"
name="osmo-bts-sysmo"
prefix="/usr/local/jenkins-build/inst-$name"
prefix_real="$DESTDIR$prefix"
. "$(dirname "$0")/jenkins-build-common.sh"

# for gsm_data_shared.h
have_repo openbsc

build_repo libosmocore --disable-pcsc --disable-doxygen
build_repo libosmo-abis
build_repo osmo-bts --enable-sysmocom-bts --with-openbsc=$base/openbsc/openbsc/include

create_bin_tgz osmo-bts-sysmo