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 | |
Pau Espin Pedrol | b172c06 | 2022-09-08 11:39:59 +0200 | [diff] [blame] | 15 | # Workaround to oe-core meta/site/* CONFIG_SITE files passed to autoconf forcing |
| 16 | # unavailability of netinet/sctp.h. |
| 17 | # Patch fixing issue upstream: https://patchwork.openembedded.org/patch/168892/ |
| 18 | # Merged: poky.git b11fc7795cd1a6d74c9bb50b922d928f4a17722d |
| 19 | # See meta-telephony.git 7acf2bff4e279b7d974373b952bad8e400c3bff2 |
| 20 | export ac_cv_header_netinet_sctp_h=yes |
| 21 | |
Pau Espin Pedrol | bf90917 | 2019-02-21 18:44:05 +0100 | [diff] [blame] | 22 | base="$PWD" |
| 23 | name="osmo-pcu-oc2g" |
| 24 | prefix="/usr/local/jenkins-build/inst-$name" |
| 25 | prefix_real="$DESTDIR$prefix" |
| 26 | . "$(dirname "$0")/jenkins-build-common.sh" |
| 27 | |
Pau Espin Pedrol | d581010 | 2019-03-21 15:05:33 +0100 | [diff] [blame] | 28 | prev_git_url="${git_url}" |
| 29 | git_url="https://gitlab.com/nrw_oc2g/" |
| 30 | have_repo "oc2g-fw" "nrw/oc2g" |
| 31 | git_url="${prev_git_url}" |
| 32 | L1_OC2G_HEADERS="$PWD/oc2g-fw/inc" |
| 33 | |
Pau Espin Pedrol | 92ebea1 | 2020-12-07 13:07:30 +0100 | [diff] [blame] | 34 | build_repo libosmocore --disable-pcsc --disable-libmnl --disable-doxygen --disable-gnutls --disable-detect-tls-gcc-arm-bug |
Pau Espin Pedrol | d581010 | 2019-03-21 15:05:33 +0100 | [diff] [blame] | 35 | build_repo osmo-pcu --disable-sysmocom-dsp -enable-oc2gbts-phy --with-oc2g="$L1_OC2G_HEADERS" |
Pau Espin Pedrol | bf90917 | 2019-02-21 18:44:05 +0100 | [diff] [blame] | 36 | |
| 37 | create_bin_tgz osmo-pcu |