2017-04-08 13:56:31 +00:00
|
|
|
#!/bin/sh
|
2017-03-28 10:16:58 +00:00
|
|
|
set -e -x
|
|
|
|
|
2018-03-06 13:31:26 +00:00
|
|
|
_poky_version="$POKY_VERSION"
|
|
|
|
_poky_path="$POKY_PATH"
|
|
|
|
|
2020-02-14 14:39:47 +00:00
|
|
|
[ -z "$_poky_version" ] && _poky_version="2.3.4"
|
2020-02-14 15:26:30 +00:00
|
|
|
[ -z "$_poky_path" ] && _poky_path="/opt/poky-sdk/$_poky_version"
|
2018-03-06 13:31:26 +00:00
|
|
|
|
|
|
|
. "$_poky_path/environment-setup-armv5te-poky-linux-gnueabi"
|
2017-03-28 10:16:58 +00:00
|
|
|
|
2017-04-08 13:56:31 +00:00
|
|
|
# Cross-compilation: all installations need to be put in the sysmo SDK sysroot
|
2018-03-06 13:31:26 +00:00
|
|
|
export DESTDIR="$_poky_path/sysroots/armv5te-poky-linux-gnueabi"
|
2017-03-28 10:16:58 +00:00
|
|
|
|
2017-05-29 20:53:34 +00:00
|
|
|
base="$PWD"
|
|
|
|
name="osmo-bts-sysmo"
|
|
|
|
prefix="/usr/local/jenkins-build/inst-$name"
|
2017-03-28 10:16:58 +00:00
|
|
|
prefix_real="$DESTDIR$prefix"
|
2017-05-29 20:53:34 +00:00
|
|
|
. "$(dirname "$0")/jenkins-build-common.sh"
|
2017-05-24 16:10:52 +00:00
|
|
|
|
2019-08-06 14:04:58 +00:00
|
|
|
build_repo libosmocore --disable-pcsc --disable-doxygen --disable-gnutls --disable-detect-tls-gcc-arm-bug
|
2019-12-03 10:47:17 +00:00
|
|
|
build_repo libosmo-abis --disable-dahdi
|
2017-05-29 20:53:34 +00:00
|
|
|
build_repo osmo-bts --enable-sysmocom-bts --with-openbsc=$base/openbsc/openbsc/include
|
2017-05-22 17:32:06 +00:00
|
|
|
|
2017-09-04 14:34:18 +00:00
|
|
|
create_bin_tgz osmo-bts-sysmo
|