summaryrefslogtreecommitdiff
path: root/meta-arm/ci/jobs-to-kas
diff options
context:
space:
mode:
Diffstat (limited to 'meta-arm/ci/jobs-to-kas')
-rwxr-xr-xmeta-arm/ci/jobs-to-kas27
1 files changed, 27 insertions, 0 deletions
diff --git a/meta-arm/ci/jobs-to-kas b/meta-arm/ci/jobs-to-kas
new file mode 100755
index 0000000000..d6896b7728
--- /dev/null
+++ b/meta-arm/ci/jobs-to-kas
@@ -0,0 +1,27 @@
+#! /bin/bash
+
+# This script is expecting an input of machine name, optionally followed by a
+# colon and a list of one or more parameters separated by commas between
+# brackets. For example, the following are acceptable:
+# corstone500
+# fvp-base: [testimage]
+# qemuarm64-secureboot: [clang, glibc, testimage]
+#
+# Turn this list into a series of yml files separated by colons to pass to kas
+
+set -e -u
+
+FILES="ci/$(echo $1 | cut -d ':' -f 1).yml"
+
+for i in $(echo $1 | cut -s -d ':' -f 2 | sed 's/[][,]//g'); do
+ # Given that there are no yml files for gcc or glibc, as those are the
+ # defaults, we can simply ignore those parameters. They are necessary
+ # to pass in so that matrix can correctly setup all of the permutations
+ # of each individual run.
+ if [[ $i == 'none' || $i == 'gcc' || $i == 'glibc' || $i == 'uboot' ]]; then
+ continue
+ fi
+ FILES+=":ci/$i.yml"
+done
+
+echo $FILES