osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-rp2040-firmware/+/40227?usp=email )
Change subject: contrib/jenkins: iterate over list of targets ......................................................................
contrib/jenkins: iterate over list of targets
Prepare to add code to upload each target's binary in the next patch. Remove "set -x" to make the output more readable (the shell code is simple, no need to be that verbose about it here).
Related: OS#6784 Change-Id: Ic106e298a1e6a4aa01e2c1d87b1d806f90f27b73 --- M CMakeLists.txt M contrib/jenkins.sh 2 files changed, 14 insertions(+), 2 deletions(-)
Approvals: pespin: Looks good to me, but someone else must approve laforge: Looks good to me, but someone else must approve Jenkins Builder: Verified fixeria: Looks good to me, approved
diff --git a/CMakeLists.txt b/CMakeLists.txt index cb0f06f..94a9b6c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,5 +17,6 @@ -Wno-maybe-uninitialized )
+# When adding new subdirs, make sure to adjust TARGETS in contrib/jenkins.sh! add_subdirectory(iso7816) add_subdirectory(osmo-gtm900) diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh index e24d71a..7f72e1b 100755 --- a/contrib/jenkins.sh +++ b/contrib/jenkins.sh @@ -1,7 +1,18 @@ -#!/bin/sh -ex +#!/bin/sh -e +TARGETS=" + iso7816_cardem + osmo-gtm900 +"
rm -rf build mkdir build cd build cmake .. -make -j$(nproc) + +for i in $TARGETS; do + echo + echo "=== make $i ===" + echo + + make -j$(nproc) "$i" +done