[meta-freescale] [meta-fsl-arm][PATCH] u-boot: Fix out-of-tree builds

Gary Thomas gary at mlbassoc.com
Sat Aug 20 06:57:01 PDT 2016


Recent changes to the main u-boot recipe builds in a separate tree
which broke the segment of this code that attempts to find the GIT
revision (not in correct directory).  This patch adjusts that by
forcing the git command to run in the correct location.

Signed-off-by: Gary Thomas <gary at mlbassoc.com>
---
 classes/fsl-u-boot-localversion.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/classes/fsl-u-boot-localversion.bbclass b/classes/fsl-u-boot-localversion.bbclass
index f7e0971..69a0fd4 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
-- 
2.7.4



More information about the meta-freescale mailing list