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 <[email protected]> --- 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 -- _______________________________________________ meta-freescale mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-freescale
