diff options
author | Andrey Konovalov <andrey.konovalov@linaro.org> | 2014-03-14 17:36:26 +0400 |
---|---|---|
committer | Andrey Konovalov <andrey.konovalov@linaro.org> | 2014-03-14 17:36:26 +0400 |
commit | 166dea81e97ed44cfcf7f0e0e6cb210569e45a5a (patch) | |
tree | a01c73f4f23681497ecfa9deba1286d28f305cbb | |
parent | 10b1d1096f1e57ce39aac333744be361200ec904 (diff) |
Use openembedded rootfs for vexpress64
This implies passing custom json file to post-build-lava.
Signed-off-by: Andrey Konovalov <andrey.konovalov@linaro.org>
-rwxr-xr-x | ll-ci.sh | 136 |
1 files changed, 114 insertions, 22 deletions
@@ -119,31 +119,123 @@ bash -x lci-build-tools/jenkins_kernel_build_inst cp -a builddir-*-${kernel_flavour}/.config kernel_config_${hwpack} -echo "HWPACK_JOB_NAME=${JOB_NAME}" > post_build_lava_parameters -echo "HWPACK_BUILD_NUMBER=${BUILD_NUMBER}" >> post_build_lava_parameters -echo "HWPACK_FILE_NAME=`ls hwpack_linaro-${hwpack}*.tar.gz`" >> post_build_lava_parameters -echo "BUNDLE_STREAM_NAME=/private/team/linaro/ci-linux-linaro-tracking-ll/" >> post_build_lava_parameters +if [ "${ARCH}" = "arm64" ]; then +# use OE rootfs and custom LAVA job definition for arm64 -case "${hwpack}" in - arndale|arndale-octa|highbank|midway|origen|panda) - echo "DEVICE_TYPE=${hwpack}" >> post_build_lava_parameters - ;; - beaglebone) - echo "DEVICE_TYPE=beaglebone-black" >> post_build_lava_parameters - ;; - snowball) - echo "DEVICE_TYPE=snowball_sd" >> post_build_lava_parameters - ;; - vexpress) - echo "DEVICE_TYPE=vexpress-a9" >> post_build_lava_parameters - ;; +ROOTFS_BUILD_NUMBER=`wget -q --no-check-certificate -O - https://ci.linaro.org/jenkins/job/openembedded-armv8-rootfs/gcc_version=4.8,label=build,rootfs=minimal/lastSuccessfulBuild/buildNumber` +ROOTFS_BUILD_URL="http://snapshots.linaro.org/openembedded/images/minimal-armv8-gcc-4.8/${ROOTFS_BUILD_NUMBER}" + + case "${hwpack}" in vexpress64) - echo "DEVICE_TYPE=rtsm_foundation-armv8" >> post_build_lava_parameters + device_type="rtsm_foundation-armv8" ;; - arndale-be|arndale-uprobes|beaglebone-uprobes|panda-be) - echo "Skip DEVICE_TYPE for ${hwpack}" - ;; -esac + esac + + cat << EOF > custom_lava_job_definition.json +{ + "actions": [ + { + "command": "deploy_linaro_image", + "metadata": { + "distribution": "openembedded", + "hwpack.build": "${BUILD_NUMBER}", + "hwpack.type": "${hwpack}", + "rootfs.build": "${ROOTFS_BUILD_NUMBER}", + "rootfs.type": "minimal-armv8" + }, + "parameters": { + "hwpack": "http://snapshots.linaro.org/kernel-hwpack/linux-linaro-tracking-ll-${hwpack}/${BUILD_NUMBER}/$(ls hwpack_linaro-${hwpack}*.tar.gz)", + "rootfs": "${ROOTFS_BUILD_URL}" + } + }, + { + "command": "lava_test_shell", + "parameters": { + "testdef_repos": [ + { + "git-repo": "git://git.linaro.org/qa/test-definitions.git", + "testdef": "openembedded/smoke-tests-basic.yaml" + } + ], + "timeout": 1200 + } + }, + { + "command": "lava_test_shell", + "parameters": { + "testdef_repos": [ + { + "git-repo": "git://git.linaro.org/qa/test-definitions.git", + "testdef": "openembedded/device-tree.yaml" + } + ], + "timeout": 800 + } + }, + { + "command": "lava_test_shell", + "parameters": { + "testdef_repos": [ + { + "git-repo": "git://git.linaro.org/qa/test-definitions.git", + "testdef": "openembedded/ltp.yaml" + } + ], + "timeout": 18000 + } + }, + { + "command": "lava_test_shell", + "parameters": { + "testdef_repos": [ + { + "git-repo": "git://git.linaro.org/qa/test-definitions.git", + "testdef": "openembedded/perf.yaml" + } + ], + "timeout": 800 + } + }, + { + "command": "submit_results", + "parameters": { + "server": "http://validation.linaro.org/RPC2/", + "stream": "/private/team/linaro/ci-linux-linaro-tracking-ll/" + } + } + ], + "device_type": "${device_type}", + "job_name": "${BUILD_URL}", + "timeout": 172800 +} +EOF + + echo "CUSTOM_JSON_URL=${BUILD_URL}/artifact/custom_lava_job_definition.json" > post_build_lava_parameters +else +# let post-build-lava to generate the JSON for LAVA + echo "HWPACK_JOB_NAME=${JOB_NAME}" > post_build_lava_parameters + echo "HWPACK_BUILD_NUMBER=${BUILD_NUMBER}" >> post_build_lava_parameters + echo "HWPACK_FILE_NAME=`ls hwpack_linaro-${hwpack}*.tar.gz`" >> post_build_lava_parameters + echo "BUNDLE_STREAM_NAME=/private/team/linaro/ci-linux-linaro-tracking-ll/" >> post_build_lava_parameters + + case "${hwpack}" in + arndale|arndale-octa|highbank|midway|origen|panda) + echo "DEVICE_TYPE=${hwpack}" >> post_build_lava_parameters + ;; + beaglebone) + echo "DEVICE_TYPE=beaglebone-black" >> post_build_lava_parameters + ;; + snowball) + echo "DEVICE_TYPE=snowball_sd" >> post_build_lava_parameters + ;; + vexpress) + echo "DEVICE_TYPE=vexpress-a9" >> post_build_lava_parameters + ;; + arndale-be|arndale-uprobes|beaglebone-uprobes|panda-be) + echo "Skip DEVICE_TYPE for ${hwpack}" + ;; + esac +fi cat << EOF > BUILD-INFO.txt Format-Version: 0.5 |