From: Jan Vermaete Date: Wed, 25 Apr 2018 10:03:01 +0000 (+0200) Subject: fsl-kernel-localversion.bbclass: Allow disabling SCMVERSION X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=351b8105690c6b3f8891a2e2acbb33df77962cd4;p=meta-freescale.git 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 Signed-off-by: Otavio Salvador --- 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() { CONF_SED_SCRIPT="" kernel_conf_variable LOCALVERSION "\"${LOCALVERSION}\"" - kernel_conf_variable LOCALVERSION_AUTO y + if [ "${SCMVERSION}" = "y" ]; then + kernel_conf_variable LOCALVERSION_AUTO y + fi sed -e "${CONF_SED_SCRIPT}" < '${WORKDIR}/defconfig' >> '${B}/.config'