diff options
author | Dan Rue <dan.rue@linaro.org> | 2018-05-14 11:29:56 -0500 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2018-05-15 09:21:25 +0000 |
commit | 2b1ba2bf4aaf73e3f853953ee891889cb3e03a22 (patch) | |
tree | 3a107e95a9d1f460bbf27f0b59c9db89ce572bdc /lkft-staging-lava.yaml | |
parent | bba8a790c53d8033cd3ae54fc98054cda10bf448 (diff) |
LKFT: Staging: Fix staging builds
Fix staging-lava by syncing lkft-staging-lava with the changes that have
been made to lkft-staging-no-skiplist over the last month or so. Too bad
this isn't templated.
Change-Id: I5d32de721822002ff97b0e745cc72d2b8c4047c8
Signed-off-by: Dan Rue <dan.rue@linaro.org>
Diffstat (limited to 'lkft-staging-lava.yaml')
-rw-r--r-- | lkft-staging-lava.yaml | 63 |
1 files changed, 52 insertions, 11 deletions
diff --git a/lkft-staging-lava.yaml b/lkft-staging-lava.yaml index 4de1ef8851..dbd5ec5fce 100644 --- a/lkft-staging-lava.yaml +++ b/lkft-staging-lava.yaml @@ -69,22 +69,23 @@ builders: - shell: | #!/bin/bash + set -x # install required python modules pip install --user --force-reinstall Jinja2 requests urllib3 ruamel.yaml # no LTS 4.4 build for hikey - if [ ${DEVICE_TYPE} = hi6220-hikey ] && [ ${BUILD_NAME} = linux-stable-4.4 ] + if [ ${DEVICE_TYPE} = hi6220-hikey ] && [ ${BUILD_NAME} = linux-stable-rc-4.4 ] then exit 0 fi # no LTS 4.4 build for QEMU (Hikey build is used) - if [ ${DEVICE_TYPE} = qemu_arm64 ] && [ ${BUILD_NAME} = linux-stable-4.4 ] + if [ ${DEVICE_TYPE} = qemu_arm64 ] && [ ${BUILD_NAME} = linux-stable-rc-4.4 ] then exit 0 fi # no LTS 4.4 build for dragonboard - if [ ${DEVICE_TYPE} = dragonboard-410c ] && [ ${BUILD_NAME} = linux-stable-4.4 ] + if [ ${DEVICE_TYPE} = dragonboard-410c ] && [ ${BUILD_NAME} = linux-stable-rc-4.4 ] then exit 0 fi @@ -109,6 +110,9 @@ dragonboard-410c) export MACHINE=dragonboard-410c ;; + qemu_arm) + export MACHINE=am57xx-evm + ;; qemu_arm64) export MACHINE=hikey ;; @@ -146,23 +150,60 @@ HDD_IMG=$(grep -E "rpb-console-image-${MACHINE}-[0-9]{14}-[0-9]+\.hddimg.xz" "${MD5_FILENAME}" | awk '{print $2}') case ${DEVICE_TYPE} in juno-r2) - KERNEL_FILENAME=$(grep -E "Image.*.bin" "${MD5_FILENAME}" | awk '{print $2}') - DTB_FILENAME=$(grep -E "Image.*juno-r2.*.dtb" "${MD5_FILENAME}" | awk '{print $2}') + KERNEL_FILENAME=$(grep -E " Image.*.bin" "${MD5_FILENAME}" | awk '{print $2}') + DTB_FILENAME=$(grep -E " Image.*juno-r2.*.dtb" "${MD5_FILENAME}" | awk '{print $2}') ;; b2260) - KERNEL_FILENAME=$(grep -E "uImage.*.bin" "${MD5_FILENAME}" | awk '{print $2}') - DTB_FILENAME=$(grep -E "uImage.*.dtb" "${MD5_FILENAME}" | awk '{print $2}') + KERNEL_FILENAME=$(grep -E " uImage.*.bin" "${MD5_FILENAME}" | awk '{print $2}') + DTB_FILENAME=$(grep -E " uImage.*.dtb" "${MD5_FILENAME}" | awk '{print $2}') ;; dragonboard-410c) - BOOT_FILENAME=$(grep -E "boot\S*\.img" "${MD5_FILENAME}" | awk '{print $2}') + BOOT_FILENAME=$(grep -E " boot\S*\.img" "${MD5_FILENAME}" | awk '{print $2}') ;; qemu_arm64) - KERNEL_FILENAME=$(grep -E "Image.*.bin" "${MD5_FILENAME}" | awk '{print $2}') - DTB_FILENAME=$(grep -E "Image.*.dtb" "${MD5_FILENAME}" | awk '{print $2}') + KERNEL_FILENAME=$(grep -E " Image.*.bin" "${MD5_FILENAME}" | awk '{print $2}') + DTB_FILENAME=$(grep -E " Image.*.dtb" "${MD5_FILENAME}" | awk '{print $2}') + ;; + qemu_arm) + KERNEL_FILENAME=$(grep -E " zImage.*.bin" "${MD5_FILENAME}" | awk '{print $2}') + DTB_FILENAME=$(grep -E " zImage.*.dtb" "${MD5_FILENAME}" | awk '{print $2}') + ;; + *) + ;; + esac + + # Simulate KERNEL_VERSION and KERNEL_VERSION_OVERRIDE behavior from + # production. + case ${BUILD_NAME} in + linux-next) + export KERNEL_VERSION=git + export KERNEL_VERSION_OVERRIDE=next + ;; + linux-mainline) + export KERNEL_VERSION=git + export KERNEL_VERSION_OVERRIDE=mainline + ;; + linux-stable-rc-4.16) + export KERNEL_VERSION=4.16 + ;; + linux-stable-rc-4.15) + export KERNEL_VERSION=4.15 + ;; + linux-stable-rc-4.14) + export KERNEL_VERSION=4.14 + ;; + linux-stable-rc-4.9) + export KERNEL_VERSION=4.9 + ;; + linux-stable-rc-4.4) + export KERNEL_VERSION=4.4 ;; *) + echo "Unknown BUILD_NAME: ${BUILD_NAME}" + exit 1 ;; esac + case ${BUILD_NAME} in linux-next) export KSELFTESTS_VERSION=${MAKE_KERNELVERSION} @@ -183,6 +224,7 @@ export KSELFTEST_PATH=/opt/kselftests/mainline/ ;; esac + export TOOLCHAIN=${COMPILER:-unknown} export NFSROOTFS_URL="${BUILD_LOCATION}/${NFS_FILENAME}" export EXT4_IMAGE_URL="${BUILD_LOCATION}/${EXT4_IMAGE_FILENAME}" export BOOT_URL="${BUILD_LOCATION}/${BOOT_FILENAME}" @@ -190,7 +232,6 @@ export KERNEL_COMMIT=${KERNEL_COMMIT_ID} export LAVA_JOB_PRIORITY=25 export KERNEL_CONFIG_URL=${BUILD_LOCATION}/config - export KERNEL_VERSION=${MAKE_KERNELVERSION} export KERNEL_DEFCONFIG_URL=${BUILD_LOCATION}/defconfig export KERNEL_URL="${BUILD_LOCATION}/${KERNEL_FILENAME}" export DTB_URL="${BUILD_LOCATION}/${DTB_FILENAME}" |