Neels Hofmeyr | d46ea13 | 2017-04-08 15:56:31 +0200 | [diff] [blame] | 1 | #!/bin/sh |
Neels Hofmeyr | dae3d3c | 2017-03-28 12:16:58 +0200 | [diff] [blame] | 2 | set -e -x |
| 3 | |
Alexander Couzens | 9695a1c | 2018-03-06 14:31:26 +0100 | [diff] [blame] | 4 | _poky_version="$POKY_VERSION" |
| 5 | _poky_path="$POKY_PATH" |
| 6 | |
Pau Espin Pedrol | 10fe37c | 2020-02-14 15:39:47 +0100 | [diff] [blame] | 7 | [ -z "$_poky_version" ] && _poky_version="2.3.4" |
Pau Espin Pedrol | 4f3cc9e | 2020-02-14 16:26:30 +0100 | [diff] [blame] | 8 | [ -z "$_poky_path" ] && _poky_path="/opt/poky-sdk/$_poky_version" |
Alexander Couzens | 9695a1c | 2018-03-06 14:31:26 +0100 | [diff] [blame] | 9 | |
| 10 | . "$_poky_path/environment-setup-armv5te-poky-linux-gnueabi" |
Neels Hofmeyr | 53e758a | 2017-05-29 22:53:34 +0200 | [diff] [blame] | 11 | |
| 12 | # Cross-compilation: all installations need to be put in the sysmo SDK sysroot |
Alexander Couzens | 9695a1c | 2018-03-06 14:31:26 +0100 | [diff] [blame] | 13 | export DESTDIR="$_poky_path/sysroots/armv5te-poky-linux-gnueabi" |
Neels Hofmeyr | dae3d3c | 2017-03-28 12:16:58 +0200 | [diff] [blame] | 14 | |
| 15 | base="$PWD" |
Neels Hofmeyr | 53e758a | 2017-05-29 22:53:34 +0200 | [diff] [blame] | 16 | name="osmo-bts-sysmo" |
| 17 | prefix="/usr/local/jenkins-build/inst-$name" |
| 18 | prefix_real="$DESTDIR$prefix" |
| 19 | . "$(dirname "$0")/jenkins-build-common.sh" |
Neels Hofmeyr | dae3d3c | 2017-03-28 12:16:58 +0200 | [diff] [blame] | 20 | |
Pau Espin Pedrol | bf3bb49 | 2019-08-06 16:04:58 +0200 | [diff] [blame] | 21 | build_repo libosmocore --disable-pcsc --disable-doxygen --disable-gnutls --disable-detect-tls-gcc-arm-bug |
Pau Espin Pedrol | 0cb2178 | 2019-12-03 11:47:17 +0100 | [diff] [blame] | 22 | build_repo libosmo-abis --disable-dahdi |
Neels Hofmeyr | 53e758a | 2017-05-29 22:53:34 +0200 | [diff] [blame] | 23 | build_repo osmo-bts --enable-sysmocom-bts --with-openbsc=$base/openbsc/openbsc/include |
Neels Hofmeyr | dae3d3c | 2017-03-28 12:16:58 +0200 | [diff] [blame] | 24 | |
Neels Hofmeyr | 1921c0f | 2017-09-04 16:34:18 +0200 | [diff] [blame] | 25 | create_bin_tgz osmo-bts-sysmo |