aboutsummaryrefslogtreecommitdiff
path: root/sumits-oe.yaml
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2017-12-12 10:17:03 +0200
committerFathi Boudra <fathi.boudra@linaro.org>2017-12-12 10:17:03 +0200
commit82165d5e5518f10d53dd122c15f28309a8714841 (patch)
treea3729ad30accc19132809b56ce79d8b01a2ced54 /sumits-oe.yaml
parent353c37aeb8b5888cae92e675403923b3d62378bd (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.yaml5
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'