blob: 41eac1931266889268237c1c836c2aa4196987a4 [file] [log] [blame]
Pau Espin Pedrolbf909172019-02-21 18:44:05 +01001#!/bin/sh
2set -e -x
3
Pau Espin Pedrol8369cc32019-03-04 20:27:24 +01004_poky_version="$POKY_OC2G_VERSION"
5_poky_path="$POKY_OC2G_PATH"
Pau Espin Pedrolbf909172019-02-21 18:44:05 +01006
Pau Espin Pedrol8369cc32019-03-04 20:27:24 +01007[ -z "$_poky_version" ] && _poky_version="2.3.4"
8[ -z "$_poky_path" ] && _poky_path="/opt/poky-oc2g/$_poky_version"
Pau Espin Pedrolbf909172019-02-21 18:44:05 +01009
Pau Espin Pedrol8369cc32019-03-04 20:27:24 +010010. "$_poky_path/environment-setup-cortexa15hf-neon-poky-linux-gnueabi"
Pau Espin Pedrolbf909172019-02-21 18:44:05 +010011
12# Cross-compilation: all installations need to be put in the sysmo SDK sysroot
Pau Espin Pedrol8369cc32019-03-04 20:27:24 +010013export DESTDIR="$_poky_path/sysroots/cortexa15hf-neon-poky-linux-gnueabi"
Pau Espin Pedrolbf909172019-02-21 18:44:05 +010014
15base="$PWD"
16name="osmo-bts-oc2g"
17prefix="/usr/local/jenkins-build/inst-$name"
18prefix_real="$DESTDIR$prefix"
19. "$(dirname "$0")/jenkins-build-common.sh"
20
21prev_git_url="${git_url}"
22git_url="https://gitlab.com/nrw_oc2g/"
23have_repo "oc2g-fw" "nrw/oc2g"
24git_url="${prev_git_url}"
25L1_OC2G_HEADERS="$PWD/oc2g-fw/inc"
26
Pau Espin Pedrol8d27b182020-12-08 12:02:07 +010027build_repo libosmocore --disable-pcsc --disable-libmnl --disable-doxygen --disable-gnutls --disable-detect-tls-gcc-arm-bug
Pau Espin Pedrol0cb21782019-12-03 11:47:17 +010028build_repo libosmo-abis --disable-dahdi
Pau Espin Pedrolbf909172019-02-21 18:44:05 +010029build_repo osmo-bts --disable-sysmocom-bts --enable-oc2g --with-oc2g="$L1_OC2G_HEADERS"
30
31create_bin_tgz osmo-bts-oc2g