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>
# 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"
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
}