blob: 4370ecd2091c3cee0346da843ebc6ed8a1d07baf [file] [log] [blame]
Neels Hofmeyrd46ea132017-04-08 15:56:31 +02001#!/bin/sh
Neels Hofmeyrdae3d3c2017-03-28 12:16:58 +02002set -e -x
3
Alexander Couzens9695a1c2018-03-06 14:31:26 +01004_poky_version="$POKY_VERSION"
5_poky_path="$POKY_PATH"
6
Alexander Couzens89da3702018-03-06 15:10:20 +01007[ -z "$_poky_version" ] && _poky_version="2.3.2"
Alexander Couzens9695a1c2018-03-06 14:31:26 +01008[ -z "$_poky_path" ] && _poky_path="/opt/poky/$_poky_version"
9
10. "$_poky_path/environment-setup-armv5te-poky-linux-gnueabi"
Neels Hofmeyr53e758a2017-05-29 22:53:34 +020011
12# Cross-compilation: all installations need to be put in the sysmo SDK sysroot
Alexander Couzens9695a1c2018-03-06 14:31:26 +010013export DESTDIR="$_poky_path/sysroots/armv5te-poky-linux-gnueabi"
Neels Hofmeyrdae3d3c2017-03-28 12:16:58 +020014
15base="$PWD"
Neels Hofmeyr53e758a2017-05-29 22:53:34 +020016name="osmo-bts-sysmo"
17prefix="/usr/local/jenkins-build/inst-$name"
18prefix_real="$DESTDIR$prefix"
19. "$(dirname "$0")/jenkins-build-common.sh"
Neels Hofmeyrdae3d3c2017-03-28 12:16:58 +020020
Pau Espin Pedrolbf3bb492019-08-06 16:04:58 +020021build_repo libosmocore --disable-pcsc --disable-doxygen --disable-gnutls --disable-detect-tls-gcc-arm-bug
Pau Espin Pedrol0cb21782019-12-03 11:47:17 +010022build_repo libosmo-abis --disable-dahdi
Neels Hofmeyr53e758a2017-05-29 22:53:34 +020023build_repo osmo-bts --enable-sysmocom-bts --with-openbsc=$base/openbsc/openbsc/include
Neels Hofmeyrdae3d3c2017-03-28 12:16:58 +020024
Neels Hofmeyr1921c0f2017-09-04 16:34:18 +020025create_bin_tgz osmo-bts-sysmo