diff options
-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 f7e0971..617aae1 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 |