diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2017-12-12 10:17:03 +0200 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2017-12-12 10:17:03 +0200 |
commit | 82165d5e5518f10d53dd122c15f28309a8714841 (patch) | |
tree | a3729ad30accc19132809b56ce79d8b01a2ced54 /sumits-oe.yaml | |
parent | 353c37aeb8b5888cae92e675403923b3d62378bd (diff) |
sumits-oe: compute SRCREV_kernel if not provided
Change-Id: I1b8d888d61ffe175dc981e67e21f89637b05bfc2
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'sumits-oe.yaml')
-rw-r--r-- | sumits-oe.yaml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sumits-oe.yaml b/sumits-oe.yaml index b65287c4..cc5cd5b7 100644 --- a/sumits-oe.yaml +++ b/sumits-oe.yaml @@ -108,6 +108,11 @@ esac echo "DEVICE_TYPE=${DEVICE_TYPE}" > device_type_parameters + + if [ -z "${SRCREV_kernel}" ]; then + SRCREV_kernel=$(git ls-remote --heads ${KERNEL_REPO} ${KERNEL_BRANCH} | cut -f1) + fi + echo "#${BUILD_NUMBER}-${SRCREV_kernel:0:8}" > ${WORKSPACE}/version.txt - build-name-setter: name: 'version.txt' |