summaryrefslogtreecommitdiffstats
path: root/classes
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-23 23:26:55 -0300
commitb212a041436eb6adb39c465aa1e3353573eabc5c (patch)
tree214171a0b1f8b44753173dc8c4ac6f19778f741b /classes
parenta7b7185a560b2a63f8b94053267faaabf9bb804e (diff)
downloadmeta-freescale-b212a041436eb6adb39c465aa1e3353573eabc5c.tar.gz
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>
Diffstat (limited to 'classes')
-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 f7e09714..617aae1d 100644
--- a/classes/fsl-u-boot-localversion.bbclass
+++ b/classes/fsl-u-boot-localversion.bbclass
@@ -17,7 +17,7 @@ UBOOT_LOCALVERSION = "${LOCALVERSION}"
17do_compile_prepend() { 17do_compile_prepend() {
18 if [ "${SCMVERSION}" = "y" ]; then 18 if [ "${SCMVERSION}" = "y" ]; then
19 # Add GIT revision to the local version 19 # Add GIT revision to the local version
20 head=`git rev-parse --verify --short HEAD 2> /dev/null` 20 head=`cd ${S} ; git rev-parse --verify --short HEAD 2> /dev/null`
21 printf "%s%s%s" "${UBOOT_LOCALVERSION}" +g $head > ${S}/.scmversion 21 printf "%s%s%s" "${UBOOT_LOCALVERSION}" +g $head > ${S}/.scmversion
22 printf "%s%s%s" "${UBOOT_LOCALVERSION}" +g $head > ${B}/.scmversion 22 printf "%s%s%s" "${UBOOT_LOCALVERSION}" +g $head > ${B}/.scmversion
23 else 23 else