Holger Hans Peter Freyther | 81eb10c | 2016-04-13 19:03:38 -0400 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | set -ex |
| 4 | |
Neels Hofmeyr | a335ee3 | 2016-07-11 19:39:51 +0200 | [diff] [blame] | 5 | base="$PWD" |
| 6 | deps="$base/deps" |
| 7 | inst="$deps/install" |
Neels Hofmeyr | b88a18c | 2016-10-07 00:58:22 +0200 | [diff] [blame] | 8 | export deps inst |
Holger Hans Peter Freyther | 81eb10c | 2016-04-13 19:03:38 -0400 | [diff] [blame] | 9 | |
Neels Hofmeyr | a335ee3 | 2016-07-11 19:39:51 +0200 | [diff] [blame] | 10 | mkdir "$deps" || true |
| 11 | rm -rf "$inst" |
| 12 | |
Neels Hofmeyr | b88a18c | 2016-10-07 00:58:22 +0200 | [diff] [blame] | 13 | osmo-build-dep.sh libosmocore "" ac_cv_path_DOXYGEN=false |
Neels Hofmeyr | a335ee3 | 2016-07-11 19:39:51 +0200 | [diff] [blame] | 14 | |
Neels Hofmeyr | a335ee3 | 2016-07-11 19:39:51 +0200 | [diff] [blame] | 15 | export PKG_CONFIG_PATH="$inst/lib/pkgconfig:$PKG_CONFIG_PATH" |
Neels Hofmeyr | b88a18c | 2016-10-07 00:58:22 +0200 | [diff] [blame] | 16 | export LD_LIBRARY_PATH="$inst/lib" |
Neels Hofmeyr | a335ee3 | 2016-07-11 19:39:51 +0200 | [diff] [blame] | 17 | |
Neels Hofmeyr | 58996b7 | 2016-07-11 19:44:58 +0200 | [diff] [blame] | 18 | if [ "x$IU" = "x--enable-iu" ]; then |
| 19 | netif_branch="sysmocom/sctp" |
| 20 | sccp_branch="sysmocom/iu" |
| 21 | fi |
| 22 | |
Neels Hofmeyr | b88a18c | 2016-10-07 00:58:22 +0200 | [diff] [blame] | 23 | osmo-build-dep.sh libosmo-abis |
| 24 | osmo-build-dep.sh libosmo-netif $netif_branch |
| 25 | osmo-build-dep.sh libosmo-sccp $sccp_branch |
| 26 | PARALLEL_MAKE="" osmo-build-dep.sh libsmpp34 |
| 27 | osmo-build-dep.sh openggsn |
Neels Hofmeyr | a335ee3 | 2016-07-11 19:39:51 +0200 | [diff] [blame] | 28 | |
Neels Hofmeyr | 58996b7 | 2016-07-11 19:44:58 +0200 | [diff] [blame] | 29 | if [ "x$IU" = "x--enable-iu" ]; then |
Neels Hofmeyr | b88a18c | 2016-10-07 00:58:22 +0200 | [diff] [blame] | 30 | osmo-build-dep.sh libasn1c |
| 31 | #osmo-build-dep.sh asn1c aper-prefix # only needed for make regen in osmo-iuh |
| 32 | osmo-build-dep.sh osmo-iuh |
Neels Hofmeyr | 58996b7 | 2016-07-11 19:44:58 +0200 | [diff] [blame] | 33 | fi |
| 34 | |
Neels Hofmeyr | b88a18c | 2016-10-07 00:58:22 +0200 | [diff] [blame] | 35 | set +x |
| 36 | echo |
| 37 | echo |
| 38 | echo |
| 39 | echo " =============================== openbsc ===============================" |
| 40 | echo |
| 41 | set -x |
| 42 | |
Neels Hofmeyr | a335ee3 | 2016-07-11 19:39:51 +0200 | [diff] [blame] | 43 | cd "$base" |
| 44 | cd openbsc |
Holger Hans Peter Freyther | 81eb10c | 2016-04-13 19:03:38 -0400 | [diff] [blame] | 45 | autoreconf --install --force |
Neels Hofmeyr | 58996b7 | 2016-07-11 19:44:58 +0200 | [diff] [blame] | 46 | ./configure --enable-osmo-bsc --enable-nat $SMPP $MGCP $IU --enable-vty-tests --enable-external-tests |
Neels Hofmeyr | a335ee3 | 2016-07-11 19:39:51 +0200 | [diff] [blame] | 47 | $MAKE $PARALLEL_MAKE |
Neels Hofmeyr | b88a18c | 2016-10-07 00:58:22 +0200 | [diff] [blame] | 48 | LD_LIBRARY_PATH="$inst/lib" $MAKE check \ |
| 49 | || cat-testlogs.sh |
| 50 | LD_LIBRARY_PATH="$inst/lib" $MAKE distcheck \ |
| 51 | || cat-testlogs.sh |