From: Otavio Salvador Date: Fri, 19 Aug 2016 20:36:19 +0000 (-0300) Subject: fsl-u-boot-localversion.bbclass: Ensure git is run inside ${S} X-Git-Tag: 2.2~284 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=b212a041436eb6adb39c465aa1e3353573eabc5c;p=meta-freescale.git 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 --- 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}" 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