Pau Espin Pedrol | bf90917 | 2019-02-21 18:44:05 +0100 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | set -e -x |
| 3 | |
Pau Espin Pedrol | 8369cc3 | 2019-03-04 20:27:24 +0100 | [diff] [blame] | 4 | _poky_version="$POKY_OC2G_VERSION" |
| 5 | _poky_path="$POKY_OC2G_PATH" |
Pau Espin Pedrol | bf90917 | 2019-02-21 18:44:05 +0100 | [diff] [blame] | 6 | |
Pau Espin Pedrol | 8369cc3 | 2019-03-04 20:27:24 +0100 | [diff] [blame] | 7 | [ -z "$_poky_version" ] && _poky_version="2.3.4" |
| 8 | [ -z "$_poky_path" ] && _poky_path="/opt/poky-oc2g/$_poky_version" |
Pau Espin Pedrol | bf90917 | 2019-02-21 18:44:05 +0100 | [diff] [blame] | 9 | |
Pau Espin Pedrol | 8369cc3 | 2019-03-04 20:27:24 +0100 | [diff] [blame] | 10 | . "$_poky_path/environment-setup-cortexa15hf-neon-poky-linux-gnueabi" |
Pau Espin Pedrol | bf90917 | 2019-02-21 18:44:05 +0100 | [diff] [blame] | 11 | |
| 12 | # Cross-compilation: all installations need to be put in the sysmo SDK sysroot |
Pau Espin Pedrol | 8369cc3 | 2019-03-04 20:27:24 +0100 | [diff] [blame] | 13 | export DESTDIR="$_poky_path/sysroots/cortexa15hf-neon-poky-linux-gnueabi" |
Pau Espin Pedrol | bf90917 | 2019-02-21 18:44:05 +0100 | [diff] [blame] | 14 | |
| 15 | base="$PWD" |
| 16 | name="osmo-bts-oc2g" |
| 17 | prefix="/usr/local/jenkins-build/inst-$name" |
| 18 | prefix_real="$DESTDIR$prefix" |
| 19 | . "$(dirname "$0")/jenkins-build-common.sh" |
| 20 | |
| 21 | prev_git_url="${git_url}" |
| 22 | git_url="https://gitlab.com/nrw_oc2g/" |
| 23 | have_repo "oc2g-fw" "nrw/oc2g" |
| 24 | git_url="${prev_git_url}" |
| 25 | L1_OC2G_HEADERS="$PWD/oc2g-fw/inc" |
| 26 | |
Pau Espin Pedrol | 8d27b18 | 2020-12-08 12:02:07 +0100 | [diff] [blame] | 27 | build_repo libosmocore --disable-pcsc --disable-libmnl --disable-doxygen --disable-gnutls --disable-detect-tls-gcc-arm-bug |
Pau Espin Pedrol | 0cb2178 | 2019-12-03 11:47:17 +0100 | [diff] [blame] | 28 | build_repo libosmo-abis --disable-dahdi |
Pau Espin Pedrol | bf90917 | 2019-02-21 18:44:05 +0100 | [diff] [blame] | 29 | build_repo osmo-bts --disable-sysmocom-bts --enable-oc2g --with-oc2g="$L1_OC2G_HEADERS" |
| 30 | |
| 31 | create_bin_tgz osmo-bts-oc2g |