2017-09-04 18:42:55 +00:00
|
|
|
#!/bin/sh -ex
|
2017-07-10 13:00:00 +00:00
|
|
|
|
2017-09-04 18:42:55 +00:00
|
|
|
artifact_deps() {
|
2017-07-10 13:00:00 +00:00
|
|
|
|
2017-09-04 18:42:55 +00:00
|
|
|
x="$($1 libosmocore)"
|
|
|
|
x="${x}_$($1 libosmo-abis)"
|
|
|
|
x="${x}_$($1 libosmo-netif)"
|
|
|
|
x="${x}_$($1 libosmo-sccp "$sccp_branch")"
|
|
|
|
x="${x}_$($1 libsmpp34)"
|
|
|
|
x="${x}_$($1 openggsn)"
|
2016-04-13 23:03:38 +00:00
|
|
|
|
2017-09-04 18:42:55 +00:00
|
|
|
if [ "x$IU" = "x--enable-iu" ]; then
|
|
|
|
x="${x}_$($1 libasn1c)"
|
|
|
|
x="${x}_$($1 osmo-iuh "$osmo_iuh_branch")"
|
|
|
|
fi
|
2016-04-13 23:03:38 +00:00
|
|
|
|
2017-09-04 18:42:55 +00:00
|
|
|
echo "${x}.tar.gz"
|
|
|
|
}
|
2016-07-11 17:39:51 +00:00
|
|
|
|
2017-09-04 18:42:55 +00:00
|
|
|
build_deps() {
|
2016-07-11 17:39:51 +00:00
|
|
|
|
2017-09-04 18:42:55 +00:00
|
|
|
osmo-build-dep.sh libosmocore master ac_cv_path_DOXYGEN=false
|
|
|
|
verify_value_string_arrays_are_terminated.py $(find . -name "*.[hc]")
|
|
|
|
osmo-build-dep.sh libosmo-abis
|
|
|
|
osmo-build-dep.sh libosmo-netif
|
|
|
|
osmo-build-dep.sh libosmo-sccp "$sccp_branch"
|
|
|
|
PARALLEL_MAKE=-j1 osmo-build-dep.sh libsmpp34
|
|
|
|
osmo-build-dep.sh openggsn
|
2017-03-01 14:06:16 +00:00
|
|
|
|
2017-09-04 18:42:55 +00:00
|
|
|
if [ "x$IU" = "x--enable-iu" ]; then
|
|
|
|
osmo-build-dep.sh libasn1c
|
|
|
|
osmo-build-dep.sh osmo-iuh "$osmo_iuh_branch"
|
|
|
|
fi
|
|
|
|
}
|
2016-07-11 17:39:51 +00:00
|
|
|
|
2017-09-04 18:42:55 +00:00
|
|
|
build_project() {
|
|
|
|
|
|
|
|
cd "$base/openbsc"
|
|
|
|
|
|
|
|
autoreconf --install --force
|
|
|
|
|
|
|
|
./configure "$SMPP" "$MGCP" "$IU" \
|
|
|
|
--enable-osmo-bsc \
|
|
|
|
--enable-nat \
|
|
|
|
--enable-vty-tests \
|
|
|
|
--enable-external-tests
|
2017-04-10 18:57:09 +00:00
|
|
|
|
2017-09-04 18:42:55 +00:00
|
|
|
"$MAKE" $PARALLEL_MAKE
|
|
|
|
"$MAKE" check || cat-testlogs.sh
|
|
|
|
"$MAKE" distcheck || cat-testlogs.sh
|
|
|
|
}
|
2016-07-11 17:39:51 +00:00
|
|
|
|
2016-07-11 17:44:58 +00:00
|
|
|
if [ "x$IU" = "x--enable-iu" ]; then
|
2017-09-04 18:42:55 +00:00
|
|
|
sccp_branch="old_sua"
|
|
|
|
osmo_iuh_branch="old_sua"
|
2016-07-11 17:44:58 +00:00
|
|
|
fi
|
|
|
|
|
2017-09-04 18:42:55 +00:00
|
|
|
. osmo-build.sh
|