[meta-freescale] [meta-fsl-arm][PATCH 2/7] fsl-kernel-localversion.bbclass: Fix Git hash in version

Otavio Salvador otavio at ossystems.com.br
Wed Apr 1 13:56:09 PDT 2015


The .scmversion file needs to be located in the Git source, otherwise
the build system does not use it.

This fixes the regression introduced in f69b21d
(fsl-kernel-localversion.bbclass: Fix building using out-of-tree).

Change-Id: I7f06279f5b1f9aee18d1a5a39a22b27f4c34f365
Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
---
 classes/fsl-kernel-localversion.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/classes/fsl-kernel-localversion.bbclass b/classes/fsl-kernel-localversion.bbclass
index 6f9eb51..1004e35 100644
--- a/classes/fsl-kernel-localversion.bbclass
+++ b/classes/fsl-kernel-localversion.bbclass
@@ -7,7 +7,7 @@
 #  SCMVERSION        Puts the Git hash in kernel local version
 #  LOCALVERSION      Value used in LOCALVERSION (default to '+fslc')
 #
-# Copyright 2014 (C) O.S. Systems Software LTDA.
+# Copyright 2014, 2015 (C) O.S. Systems Software LTDA.
 
 SCMVERSION ??= "y"
 LOCALVERSION ??= "+fslc"
@@ -34,6 +34,6 @@ do_configure_prepend() {
 	if [ "${SCMVERSION}" = "y" ]; then
 		# Add GIT revision to the local version
 		head=`git --git-dir=${S}/.git rev-parse --verify --short HEAD 2> /dev/null`
-		printf "%s%s" +g $head > ${B}/.scmversion
+		printf "%s%s" +g $head > ${S}/.scmversion
 	fi
 }
-- 
2.1.4



More information about the meta-freescale mailing list