From 1caced0a0ecb028ea0f112cd1e04f126ddff5cfe Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Mon, 30 Mar 2015 13:43:31 -0300 Subject: fsl-kernel-localversion.bbclass: Fix Git hash in version 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 --- classes/fsl-kernel-localversion.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'classes') 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 } -- cgit v1.2.3-54-g00ecf