aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn.andersson@linaro.org>2018-05-14 21:01:28 +0200
committerNicolas Dechesne <nicolas.dechesne@linaro.org>2018-05-23 15:34:57 +0200
commit273ab5ae1206ac16fde84d6ab556cde2f78bbd6e (patch)
treea6fee75bcf3a1e6ef645d212cf0d0a1b362dcc70
parent2a7d69718ecec1d235dbf04327cc603c0400b537 (diff)
downloadmeta-qcom-273ab5ae1206ac16fde84d6ab556cde2f78bbd6e.tar.gz
meta-qcom-273ab5ae1206ac16fde84d6ab556cde2f78bbd6e.tar.bz2
meta-qcom-273ab5ae1206ac16fde84d6ab556cde2f78bbd6e.zip
boot-init: Invoke bootrr scripts automatically
In a LAVA-less environment it's convenient to have the bootrr board scripts to be automatically invoked during boot. Allow this to happen by checking the kernel command line for the magic "bootrr-auto" and if so invoke the relevant board scripts. Finish with writing the tilde sentinel, to provide a signal to automation tools of when the tests are done executing. Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> (cherry picked from commit 5840216bb1f8231c914c8356fac01b2b28ed1790)
-rw-r--r--recipes-test/initrdscripts/files/init-debug.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/recipes-test/initrdscripts/files/init-debug.sh b/recipes-test/initrdscripts/files/init-debug.sh
index c56a82f..2cab1e7 100644
--- a/recipes-test/initrdscripts/files/init-debug.sh
+++ b/recipes-test/initrdscripts/files/init-debug.sh
@@ -34,4 +34,17 @@ do_mknod /dev/console c 5 1
do_mknod /dev/null c 1 3
do_mknod /dev/zero c 1 5
+echo -n 'BOOT TIME: '
+cat /proc/uptime
+
+if $(grep -q bootrr-auto /proc/cmdline); then
+ for TEST in $(tr "\0" "\n" < /proc/device-tree/compatible); do
+ if [ -x "/usr/bin/${TEST}" ]; then
+ /usr/bin/${TEST}
+ fi
+ done
+
+ echo ~~~~~~~~~~~~~~~~~~~~~
+fi
+
exec sh </dev/console >/dev/console 2>/dev/console