diff options
author | 2017-07-13 03:20:33 +0000 | |
---|---|---|
committer | 2017-07-13 03:29:06 +0000 | |
commit | 418ed448ad6760015947958a80767a513460d671 (patch) | |
tree | b4639be8cefa2a42672c435618b6d148f7b76110 /jjb/common/include-agl-run-test-prepare.sh | |
parent | 33386624e01e460de7c69ca91e05a8c237f653d4 (diff) |
jjb/common: add LAVA templating for QEMU
LAVA jobs for QEMU have some slight differences compared to u-boot
jobs. Add templating to support QEMU jobs for any arch.
Change-Id: I6ef8e92cc169d8365f0ba1cb568b961d49e2a74f
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Diffstat (limited to 'jjb/common/include-agl-run-test-prepare.sh')
-rw-r--r-- | jjb/common/include-agl-run-test-prepare.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/jjb/common/include-agl-run-test-prepare.sh b/jjb/common/include-agl-run-test-prepare.sh index b861a360..31aeadbf 100644 --- a/jjb/common/include-agl-run-test-prepare.sh +++ b/jjb/common/include-agl-run-test-prepare.sh @@ -4,7 +4,7 @@ ################################################################################ ## Run SHORT CI test ################################################################################ -#set -x +set -x #ls -alh #pwd @@ -49,11 +49,13 @@ if [ ! -e $TESTJOBFILE ] ; then fi # some defaults +export DEVICE_ARCH=arm export DEVICE_TYPE=raspberrypi3-uboot export DEVICE_NAME=raspberrypi3 export DEVICE_DTB=uImage-bcm2710-rpi-3-b.dtb export DEVICE_KERNEL=uImage export DEVICE_INITRAMFS=initramfs-netboot-image-raspberrypi3.ext4 +export DEVICE_INITRAMFS_COMPRESSION=false export DEVICE_NBDROOT=agl-demo-platform-raspberrypi3.ext4 export DEVICE_NBDROOT_COMPRESSION=false export DEVICE_BOOT_METHOD=u-boot @@ -62,7 +64,7 @@ export DEVICE_URL_PREFIX='https://download.automotivelinux.org/AGL/upload/ci/' # import device defaults. Format 'a=b' -for i in DEVICE_TYPE DEVICE_NAME DEVICE_DTB DEVICE_KERNEL DEVICE_INITRAMFS DEVICE_NBDROOT DEVICE_NBDROOT_COMPRESSION DEVICE_BOOT_METHOD DEVICE_BOOT_TYPE DEVICE_URL_PREFIX; do +for i in DEVICE_ARCH DEVICE_TYPE DEVICE_NAME DEVICE_DTB DEVICE_KERNEL DEVICE_INITRAMFS DEVICE_INITRAMFS_COMPRESSION DEVICE_NBDROOT DEVICE_NBDROOT_COMPRESSION DEVICE_BOOT_METHOD DEVICE_BOOT_TYPE DEVICE_URL_PREFIX DEVICE_QEMU_ARGS DEVICE_KERNEL_CMDLINE; do if grep -q ^$i $ENVFILE ; then X=$(grep $i $ENVFILE | sed -e "s#${i}=##g" -e "s#;.*##g") eval export ${i}=${X} |