aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2016-08-19 17:36:19 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2016-08-22 12:05:41 -0300
commit075db78227d57528a240bd738025f1d0e5939325 (patch)
tree38a89100d83a66b4bd7cf107f7e788de35eaa483
parent53cfeee85f712937cd33c63b18a4be49e0b08e19 (diff)
downloadmeta-fsl-arm-075db78227d57528a240bd738025f1d0e5939325.tar.gz
meta-fsl-arm-075db78227d57528a240bd738025f1d0e5939325.tar.bz2
meta-fsl-arm-075db78227d57528a240bd738025f1d0e5939325.zip
fsl-u-boot-localversion.bbclass: Ensure git is run inside ${S}
The tasks does not run inside ${S} by default anymore so we must ensure to run Git inside it. Change-Id: I9bba889ed13cc386d23fa4efdac2af5b46e2d65b Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r--classes/fsl-u-boot-localversion.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/fsl-u-boot-localversion.bbclass b/classes/fsl-u-boot-localversion.bbclass
index f7e0971..617aae1 100644
--- a/classes/fsl-u-boot-localversion.bbclass
+++ b/classes/fsl-u-boot-localversion.bbclass
@@ -17,7 +17,7 @@ UBOOT_LOCALVERSION = "${LOCALVERSION}"
do_compile_prepend() {
if [ "${SCMVERSION}" = "y" ]; then
# Add GIT revision to the local version
- head=`git rev-parse --verify --short HEAD 2> /dev/null`
+ head=`cd ${S} ; git rev-parse --verify --short HEAD 2> /dev/null`
printf "%s%s%s" "${UBOOT_LOCALVERSION}" +g $head > ${S}/.scmversion
printf "%s%s%s" "${UBOOT_LOCALVERSION}" +g $head > ${B}/.scmversion
else