blob: 60f42f76187ecad4147407ceee837c844949c491 [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
Pau Espin Pedrolb172c062022-09-08 11:39:59 +020015# 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
20export ac_cv_header_netinet_sctp_h=yes
21
Pau Espin Pedrolbf909172019-02-21 18:44:05 +010022base="$PWD"
23name="osmo-pcu-oc2g"
24prefix="/usr/local/jenkins-build/inst-$name"
25prefix_real="$DESTDIR$prefix"
26. "$(dirname "$0")/jenkins-build-common.sh"
27
Pau Espin Pedrold5810102019-03-21 15:05:33 +010028prev_git_url="${git_url}"
29git_url="https://gitlab.com/nrw_oc2g/"
30have_repo "oc2g-fw" "nrw/oc2g"
31git_url="${prev_git_url}"
32L1_OC2G_HEADERS="$PWD/oc2g-fw/inc"
33
Pau Espin Pedrol92ebea12020-12-07 13:07:30 +010034build_repo libosmocore --disable-pcsc --disable-libmnl --disable-doxygen --disable-gnutls --disable-detect-tls-gcc-arm-bug
Pau Espin Pedrold5810102019-03-21 15:05:33 +010035build_repo osmo-pcu --disable-sysmocom-dsp -enable-oc2gbts-phy --with-oc2g="$L1_OC2G_HEADERS"
Pau Espin Pedrolbf909172019-02-21 18:44:05 +010036
37create_bin_tgz osmo-pcu