summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorJan Vermaete <jver@oip.be>2018-04-25 12:03:01 +0200
committerOtavio Salvador <otavio@ossystems.com.br>2018-04-26 14:41:19 -0300
commit351b8105690c6b3f8891a2e2acbb33df77962cd4 (patch)
tree122760249665594e2dbdb059d04688e48be98cab /classes
parentc7b44bfe13d81494f089b79d7c662cd7b941fb6e (diff)
downloadmeta-freescale-351b8105690c6b3f8891a2e2acbb33df77962cd4.tar.gz
fsl-kernel-localversion.bbclass: Allow disabling SCMVERSION
Do not add the short git hash to the kernel name when SCMVERSION is not set. Change-Id: I15bf597eab3a811846f3bb28a95b0f8f8a393483 Signed-off-by: Jan Vermaete <jver@oip.be> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'classes')
-rw-r--r--classes/fsl-kernel-localversion.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/fsl-kernel-localversion.bbclass b/classes/fsl-kernel-localversion.bbclass
index c0306a08..ff1075e5 100644
--- a/classes/fsl-kernel-localversion.bbclass
+++ b/classes/fsl-kernel-localversion.bbclass
@@ -28,7 +28,9 @@ do_preconfigure() {
28 CONF_SED_SCRIPT="" 28 CONF_SED_SCRIPT=""
29 29
30 kernel_conf_variable LOCALVERSION "\"${LOCALVERSION}\"" 30 kernel_conf_variable LOCALVERSION "\"${LOCALVERSION}\""
31 kernel_conf_variable LOCALVERSION_AUTO y 31 if [ "${SCMVERSION}" = "y" ]; then
32 kernel_conf_variable LOCALVERSION_AUTO y
33 fi
32 34
33 sed -e "${CONF_SED_SCRIPT}" < '${WORKDIR}/defconfig' >> '${B}/.config' 35 sed -e "${CONF_SED_SCRIPT}" < '${WORKDIR}/defconfig' >> '${B}/.config'
34 36