Change in osmo-gsm-tester[master]: contrib: build-osmocom-bb: Download and install osmocom-bb fw from OBS

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Wed May 23 09:38:40 UTC 2018


Pau Espin Pedrol has submitted this change and it was merged. ( https://gerrit.osmocom.org/9243 )

Change subject: contrib: build-osmocom-bb: Download and install osmocom-bb fw from OBS
......................................................................

contrib: build-osmocom-bb: Download and install osmocom-bb fw from OBS

As it's quite complex to build osmocom firmware nowadays (a specific old
release of gcc and binutils are required to build it), instead download
the already built binaries from OBS.

Change-Id: I2571268d91e2430a270e51438608e7dbd121e76d
---
M contrib/jenkins-build-osmocom-bb.sh
1 file changed, 9 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved



diff --git a/contrib/jenkins-build-osmocom-bb.sh b/contrib/jenkins-build-osmocom-bb.sh
index f54518a..d5eec1e 100755
--- a/contrib/jenkins-build-osmocom-bb.sh
+++ b/contrib/jenkins-build-osmocom-bb.sh
@@ -5,6 +5,8 @@
 name="osmocom-bb"
 . "$(dirname "$0")/jenkins-build-common.sh"
 
+FW_RPM_URL="http://download.opensuse.org/repositories/home:/mnhauke:/osmocom:/nightly/SLE_15/x86_64/"
+
 build_repo libosmocore --disable-doxygen
 
 have_repo osmocom-bb
@@ -20,5 +22,12 @@
 set +x; echo; echo; set -x
 make install
 
+mkdir -p "$prefix"
+cd "$prefix"
+FW_RPM="$(wget -q -O - "$FW_RPM_URL" | grep -o 'osmocom-bb-firmware.*rpm' | sed 's#\"#\n#g' | head -1)"
+echo "Downloading RPM package $FW_RPM"
+wget -q "$FW_RPM_URL/$FW_RPM" -O osmocom-bb-firmware.rpm
+rpm2cpio osmocom-bb-firmware.rpm  | cpio -idmv
+rm osmocom-bb-firmware.rpm
 
 create_bin_tgz "" "osmocon"

-- 
To view, visit https://gerrit.osmocom.org/9243
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I2571268d91e2430a270e51438608e7dbd121e76d
Gerrit-Change-Number: 9243
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180523/13481a54/attachment.htm>


More information about the gerrit-log mailing list