summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/u-boot
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp/u-boot')
-rw-r--r--recipes-bsp/u-boot/u-boot_git.bb5
1 files changed, 3 insertions, 2 deletions
diff --git a/recipes-bsp/u-boot/u-boot_git.bb b/recipes-bsp/u-boot/u-boot_git.bb
index 4f8690c..406914c 100644
--- a/recipes-bsp/u-boot/u-boot_git.bb
+++ b/recipes-bsp/u-boot/u-boot_git.bb
@@ -74,8 +74,9 @@ do_compile () {
74 74
75 if [ ! -e ${B}/.scmversion -a ! -e ${S}/.scmversion ] 75 if [ ! -e ${B}/.scmversion -a ! -e ${S}/.scmversion ]
76 then 76 then
77 echo ${UBOOT_LOCALVERSION} > ${B}/.scmversion 77 head=`git rev-parse --verify --short HEAD 2> /dev/null`
78 echo ${UBOOT_LOCALVERSION} > ${S}/.scmversion 78 printf "%s%s%s" ${UBOOT_LOCALVERSION} +g $head > ${B}/.scmversion
79 printf "%s%s%s" ${UBOOT_LOCALVERSION} +g $head > ${S}/.scmversion
79 fi 80 fi
80 81
81 if [ "x${UBOOT_MACHINES}" = "x" ]; then 82 if [ "x${UBOOT_MACHINES}" = "x" ]; then