Patchwork [meta-fsl-arm,3/4] linux-fslc: Ensure we have the GIT hash in kernel version

login
register
mail settings
Submitter Otavio Salvador
Date March 8, 2013, 6:31 p.m.
Message ID <1362767502-28921-3-git-send-email-otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/45753/
State Accepted
Delegated to: Otavio Salvador
Headers show

Comments

Otavio Salvador - March 8, 2013, 6:31 p.m.
The kernel version ought to show the GIT hash from git repository so
it can be used to identify the exact version of code user/customer is
using.

Change-Id: I19f0ededeb86d54982267d895bb5833ed7bb915c
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 recipes-kernel/linux/linux-fslc_3.8.bb | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Patch

diff --git a/recipes-kernel/linux/linux-fslc_3.8.bb b/recipes-kernel/linux/linux-fslc_3.8.bb
index 6cb4511..4b2a020 100644
--- a/recipes-kernel/linux/linux-fslc_3.8.bb
+++ b/recipes-kernel/linux/linux-fslc_3.8.bb
@@ -12,7 +12,7 @@  inherit kernel
 require recipes-kernel/linux/linux-dtb.inc
 
 PV = "3.8+git${SRCPV}"
-PR = "r1"
+PR = "r2"
 
 # patches-3.8
 SRCREV = "34f2768ffece87712ddfe753e52daf036c57eb29"
@@ -23,6 +23,11 @@  SRC_URI = "git://github.com/Freescale/linux-mainline.git \
 
 S = "${WORKDIR}/git"
 
+do_configure_append () {
+    # Ensure we have a proper GIT hash in kernel version
+    rm ${S}/.scmversion
+}
+
 # We need to pass it as param since kernel might support more then one
 # machine, with different entry points
 EXTRA_OEMAKE += "LOADADDR=${UBOOT_ENTRYPOINT}"