blob: a8a35cabff820dc6891ad07177130ca312b30152 [file] [log] [blame]
Neels Hofmeyrd46ea132017-04-08 15:56:31 +02001#!/bin/sh
Neels Hofmeyrdae3d3c2017-03-28 12:16:58 +02002set -e -x
3
Alexander Couzens9695a1c2018-03-06 14:31:26 +01004_poky_version="$POKY_VERSION"
5_poky_path="$POKY_PATH"
6
Pau Espin Pedrol10fe37c2020-02-14 15:39:47 +01007[ -z "$_poky_version" ] && _poky_version="2.3.4"
Pau Espin Pedrol4f3cc9e2020-02-14 16:26:30 +01008[ -z "$_poky_path" ] && _poky_path="/opt/poky-sdk/$_poky_version"
Alexander Couzens9695a1c2018-03-06 14:31:26 +01009
10. "$_poky_path/environment-setup-armv5te-poky-linux-gnueabi"
Neels Hofmeyr53e758a2017-05-29 22:53:34 +020011
12# Cross-compilation: all installations need to be put in the sysmo SDK sysroot
Alexander Couzens9695a1c2018-03-06 14:31:26 +010013export DESTDIR="$_poky_path/sysroots/armv5te-poky-linux-gnueabi"
Neels Hofmeyrdae3d3c2017-03-28 12:16:58 +020014
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
Neels Hofmeyrdae3d3c2017-03-28 12:16:58 +020022base="$PWD"
Neels Hofmeyr53e758a2017-05-29 22:53:34 +020023name="osmo-bts-sysmo"
24prefix="/usr/local/jenkins-build/inst-$name"
25prefix_real="$DESTDIR$prefix"
26. "$(dirname "$0")/jenkins-build-common.sh"
Neels Hofmeyrdae3d3c2017-03-28 12:16:58 +020027
Oliver Smithe8b16f42023-08-25 10:39:15 +020028build_repo libosmocore --disable-pcsc --disable-libmnl --disable-doxygen --disable-gnutls --disable-detect-tls-gcc-arm-bug --disable-uring
Pau Espin Pedrol0cb21782019-12-03 11:47:17 +010029build_repo libosmo-abis --disable-dahdi
Pau Espin Pedrol93d3b9d2022-09-07 10:58:30 +020030build_repo libosmo-netif --disable-doxygen
Neels Hofmeyr53e758a2017-05-29 22:53:34 +020031build_repo osmo-bts --enable-sysmocom-bts --with-openbsc=$base/openbsc/openbsc/include
Neels Hofmeyrdae3d3c2017-03-28 12:16:58 +020032
Neels Hofmeyr1921c0f2017-09-04 16:34:18 +020033create_bin_tgz osmo-bts-sysmo