diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2017-06-22 09:41:54 +0300 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2017-06-22 09:41:54 +0300 |
commit | 9ad414e395b40c607bba54deeaddaad3fbafea61 (patch) | |
tree | 6b622a645752806f1c2e212b192f35d2effb04b3 /openembedded-lkft-lt-4.4.yaml | |
parent | ff2326a76385fd2edebbd235774a2b64405294d7 (diff) |
openembedded-lkft: inject DEVICE_TYPE in the build environment
In order to avoid to define DEVICE_TYPE in each shell section when needed,
inject DEVICE_TYPE in the build environment, based on MACHINE value.
Change-Id: I8dd42b30f149a815a073f5f2376734bc0de15cec
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'openembedded-lkft-lt-4.4.yaml')
-rw-r--r-- | openembedded-lkft-lt-4.4.yaml | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/openembedded-lkft-lt-4.4.yaml b/openembedded-lkft-lt-4.4.yaml index b474c408e6..f60091e49f 100644 --- a/openembedded-lkft-lt-4.4.yaml +++ b/openembedded-lkft-lt-4.4.yaml @@ -76,6 +76,19 @@ credential-id: QA_REPORTS_TOKEN variable: QA_REPORTS_TOKEN builders: + - shell: | + #!/bin/bash + + # Mapping for MACHINE -> DEVICE_TYPE + case "${MACHINE}" in + hikey) + DEVICE_TYPE=hi6220-hikey + ;; + esac + + echo "DEVICE_TYPE=${DEVICE_TYPE}" > device_type_parameters + - inject: + properties-file: device_type_parameters - shell: !include-raw: openembedded-lkft/builders.sh - inject: @@ -98,8 +111,6 @@ --link-latest \ ${DEPLOY_DIR_IMAGE}/ ${BASE_URL} - shell: | - export DEVICE_TYPE=hi6220-hikey - rm -rf configs git clone --depth 1 http://git.linaro.org/ci/job/configs.git @@ -125,7 +136,6 @@ property-file: post_build_lava_parameters block: true - shell: | - export DEVICE_TYPE=hi6220-hikey export LAVA_SERVER=https://lkft.validation.linaro.org/RPC2/ export KSELFTEST_SKIPLIST="" |