]> code.ossystems Code Review - meta-freescale.git/commitdiff
fsl-kernel-localversion.bbclass: Fix Git hash in version
authorOtavio Salvador <otavio@ossystems.com.br>
Mon, 30 Mar 2015 16:43:31 +0000 (13:43 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 3 Apr 2015 01:49:07 +0000 (22:49 -0300)
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@ossystems.com.br>
meta-fsl-arm/classes/fsl-kernel-localversion.bbclass

index 6f9eb51325c7a38199425832829d25b4d9bfc672..1004e35526aceaa7277aa0ffc20d36fcc0064f1d 100644 (file)
@@ -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
 }