aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2020-05-11 12:42:11 +0200
committerOliver Smith <osmith@sysmocom.de>2020-05-11 12:42:11 +0200
commit09bbbe9c07292b7725235212d6ea270bd661c6a1 (patch)
tree276bc14886be44cff3608753e843a23411b1f070
parentdaa7b4c50529f838ac8b988738d9e5e85931047d (diff)
build.sh: additional sources for osmocom pkgs too
-rwxr-xr-xrpm-local/build.sh15
1 files changed, 13 insertions, 2 deletions
diff --git a/rpm-local/build.sh b/rpm-local/build.sh
index 388868a..797dd60 100755
--- a/rpm-local/build.sh
+++ b/rpm-local/build.sh
@@ -93,6 +93,7 @@ _build_pkg() {
# $1: pkgname (e.g. libosmocore)
# $2: osmocom git repo name (if different than $1)
+# $3-$n: path to additional source in $OSCDIR (e.g. gapk/0606_421.zip)
build_pkg_osmo() {
local pkgname="$1"
local repo="$2"
@@ -117,6 +118,17 @@ build_pkg_osmo() {
HEAD \
> "$tarball"
+ if [ -n "$2" ] && [ -n "$3" ]; then
+ shift 2
+ for i in "$@"; do
+ local tarball="$OSCDIR/$i"
+
+ require_path "$tarball"
+ echo "add source: $tarball"
+ cp "$tarball" "rpmbuild/SOURCES/"
+ done
+ fi
+
_build_pkg "$pkgname"
}
@@ -207,8 +219,7 @@ build_pkg_osmo "osmo-sgsn"
build_pkg_osmo "osmo-sip-connector"
# Other
-# needs: libgsm-devel, libopencore-amr-devel
-# build_pkg_osmo "gapk"
+build_pkg_osmo "gapk" "gapk" "gapk/0606_421.zip"
build_pkg_osmo "osmocom-bb"
# needs: libulfius
# build_pkg_osmo "osmo-cbc"