blob: 59ba85d0ea882cd1421feec0cdd033cb1f6c8335 [file] [log] [blame]
Neels Hofmeyrd46ea132017-04-08 15:56:31 +02001#!/bin/sh
Neels Hofmeyrdae3d3c2017-03-28 12:16:58 +02002set -e -x
3
Neels Hofmeyr53e758a2017-05-29 22:53:34 +02004poky="/opt/poky/1.5.4"
5. "$poky/environment-setup-armv5te-poky-linux-gnueabi"
6
7# Cross-compilation: all installations need to be put in the sysmo SDK sysroot
8export DESTDIR="$poky/sysroots/armv5te-poky-linux-gnueabi"
Neels Hofmeyrdae3d3c2017-03-28 12:16:58 +02009
10base="$PWD"
Neels Hofmeyr53e758a2017-05-29 22:53:34 +020011name="osmo-bts-sysmo"
12prefix="/usr/local/jenkins-build/inst-$name"
13prefix_real="$DESTDIR$prefix"
14. "$(dirname "$0")/jenkins-build-common.sh"
Neels Hofmeyrdae3d3c2017-03-28 12:16:58 +020015
16# for gsm_data_shared.h
17have_repo openbsc
18
Pau Espin Pedrol37d38f02017-11-06 15:39:16 +010019build_repo libosmocore --disable-pcsc --disable-doxygen --disable-gnutls
Neels Hofmeyr53e758a2017-05-29 22:53:34 +020020build_repo libosmo-abis
21build_repo osmo-bts --enable-sysmocom-bts --with-openbsc=$base/openbsc/openbsc/include
Neels Hofmeyrdae3d3c2017-03-28 12:16:58 +020022
Neels Hofmeyr1921c0f2017-09-04 16:34:18 +020023create_bin_tgz osmo-bts-sysmo