diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2018-04-19 09:26:36 +0300 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2018-04-19 09:26:36 +0300 |
commit | f33c6d547c2da257fbb7bd25d04c28303ae39a6a (patch) | |
tree | b310af8c224a8ce063fcb26f19b54cf2a367cee1 /openembedded-lkft-linux-generic.yaml | |
parent | 023a6742443ccf13444e320830234235877a6a0c (diff) |
openembedded-lkft-linux-generic: fix injected env vars
We can't inject env vars when they are job parameters.
Generate the custom kernel config earmier so we don't need to pass them as
injected env vars at all.
Change-Id: If9de33e8d18cc7df1a827f0b39af3de4893b7321
Reported-by: Dan Rue <dan.rue@linaro.org>
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'openembedded-lkft-linux-generic.yaml')
-rw-r--r-- | openembedded-lkft-linux-generic.yaml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/openembedded-lkft-linux-generic.yaml b/openembedded-lkft-linux-generic.yaml index 78cc18d8..f2d35af9 100644 --- a/openembedded-lkft-linux-generic.yaml +++ b/openembedded-lkft-linux-generic.yaml @@ -108,14 +108,21 @@ # Determine the kernel commit if it isn't given [ -z "${KERNEL_COMMIT}" ] && KERNEL_COMMIT=$(git ls-remote --heads ${KERNEL_REPO} ${KERNEL_BRANCH} | cut -f1) + cat << EOF > ${WORKSPACE}/custom-kernel-info.inc.tmp + KERNEL_COMMIT = "${KERNEL_COMMIT}" + KERNEL_REPO = "${KERNEL_REPO/http*:/git:}" + KERNEL_BRANCH = "${KERNEL_BRANCH}" + KERNEL_CONFIG_aarch64 = "${KERNEL_CONFIG}" + KERNEL_CONFIG_arm = "${KERNEL_CONFIG}" + KERNEL_CONFIG_x86-64 = "${KERNEL_CONFIG}" + EOF + echo "IMAGES=rpb-console-image" > parameters echo "MANIFEST_URL=https://github.com/96boards/oe-rpb-manifest.git" >> parameters echo "MANIFEST_BRANCH=rocko" >> parameters echo "DISTRO=rpb" >> parameters echo "MACHINE=${MACHINE}" >> parameters echo "DEVICE_TYPE=${DEVICE_TYPE}" >> parameters - echo "KERNEL_CONFIG=${KERNEL_CONFIG}" >> parameters - echo "KERNEL_COMMIT=${KERNEL_COMMIT}" >> parameters cat parameters echo "#${BUILD_NUMBER}-${KERNEL_COMMIT:0:8}" > ${WORKSPACE}/version.txt |