osmith has uploaded this change for review.

View Change

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(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-rp2040-firmware refs/changes/27/40227/1
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

To view, visit change 40227. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: osmo-rp2040-firmware
Gerrit-Branch: master
Gerrit-Change-Id: Ic106e298a1e6a4aa01e2c1d87b1d806f90f27b73
Gerrit-Change-Number: 40227
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith@sysmocom.de>