aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/jenkins-build-osmo-bts-sysmo.sh
blob: a8a35cabff820dc6891ad07177130ca312b30152 (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
#!/bin/sh
set -e -x

_poky_version="$POKY_VERSION"
_poky_path="$POKY_PATH"

[ -z "$_poky_version" ] && _poky_version="2.3.4"
[ -z "$_poky_path" ] && _poky_path="/opt/poky-sdk/$_poky_version"

. "$_poky_path/environment-setup-armv5te-poky-linux-gnueabi"

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

# Workaround to oe-core meta/site/* CONFIG_SITE files passed to autoconf forcing
# unavailability of netinet/sctp.h.
# Patch fixing issue upstream: https://patchwork.openembedded.org/patch/168892/
# Merged: poky.git b11fc7795cd1a6d74c9bb50b922d928f4a17722d
# See meta-telephony.git 7acf2bff4e279b7d974373b952bad8e400c3bff2
export ac_cv_header_netinet_sctp_h=yes

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

build_repo libosmocore --disable-pcsc --disable-libmnl --disable-doxygen --disable-gnutls --disable-detect-tls-gcc-arm-bug --disable-uring
build_repo libosmo-abis --disable-dahdi
build_repo libosmo-netif --disable-doxygen
build_repo osmo-bts --enable-sysmocom-bts --with-openbsc=$base/openbsc/openbsc/include

create_bin_tgz osmo-bts-sysmo