diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2016-08-19 17:36:19 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2016-08-23 23:26:55 -0300 |
commit | b212a041436eb6adb39c465aa1e3353573eabc5c (patch) | |
tree | 214171a0b1f8b44753173dc8c4ac6f19778f741b /classes/fsl-u-boot-localversion.bbclass | |
parent | a7b7185a560b2a63f8b94053267faaabf9bb804e (diff) | |
download | meta-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/fsl-u-boot-localversion.bbclass')
-rw-r--r-- | classes/fsl-u-boot-localversion.bbclass | 2 |
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}" | |||
17 | do_compile_prepend() { | 17 | do_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 |