aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/jenkins_oc2g.sh
diff options
context:
space:
mode:
authorOmar Ramadan <oramadan@fb.com>2018-10-23 15:42:46 -0700
committerHarald Welte <laforge@gnumonks.org>2018-10-27 11:35:58 +0000
commit9c75c387c04175298d7fae3dd432d84bd622fccd (patch)
tree5275a426f7aa23564b82d4bb7f434aa46219734d /contrib/jenkins_oc2g.sh
parentee9e8e9eb22257000765f4c6a5138fc0200e864f (diff)
Add OC-2G BTS sources
Diffstat (limited to 'contrib/jenkins_oc2g.sh')
-rwxr-xr-xcontrib/jenkins_oc2g.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/contrib/jenkins_oc2g.sh b/contrib/jenkins_oc2g.sh
new file mode 100755
index 00000000..b8badce6
--- /dev/null
+++ b/contrib/jenkins_oc2g.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+# jenkins build helper script for osmo-bts-oc2g
+
+# shellcheck source=contrib/jenkins_common.sh
+. $(dirname "$0")/jenkins_common.sh
+
+osmo-build-dep.sh libosmocore "" --disable-doxygen
+
+export PKG_CONFIG_PATH="$inst/lib/pkgconfig:$PKG_CONFIG_PATH"
+export LD_LIBRARY_PATH="$inst/lib"
+
+osmo-build-dep.sh libosmo-abis
+
+cd "$deps"
+osmo-layer1-headers.sh oc2g "$FIRMWARE_VERSION"
+
+configure_flags="\
+ --enable-sanitize \
+ --with-oc2g=$deps/layer1-headers/inc/ \
+ --enable-oc2g \
+ "
+
+build_bts "osmo-bts-oc2g" "$configure_flags"
+
+osmo-clean-workspace.sh