diff options
author | Chunrong Guo <B40290@freescale.com> | 2014-03-27 13:46:20 +0800 |
---|---|---|
committer | Zhenhua Luo <zhenhua.luo@freescale.com> | 2014-04-02 11:16:11 +0800 |
commit | 2aa3a1ccfa820c8dd3188567a1fbc04ccef21a15 (patch) | |
tree | 96a33701961b25d7a2a59a15ec96c7d126e67f26 /meta-fsl-ppc | |
parent | 8caffd0a3a402ea98d2d313f1c7f7d72a15d9bb2 (diff) | |
download | meta-freescale-2aa3a1ccfa820c8dd3188567a1fbc04ccef21a15.tar.gz |
u-boot: add git revision to the local version
Signed-off-by: Chunrong Guo <B40290@freescale.com>
Diffstat (limited to 'meta-fsl-ppc')
-rw-r--r-- | meta-fsl-ppc/recipes-bsp/u-boot/u-boot_git.bb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta-fsl-ppc/recipes-bsp/u-boot/u-boot_git.bb b/meta-fsl-ppc/recipes-bsp/u-boot/u-boot_git.bb index 4f8690c23..406914cbe 100644 --- a/meta-fsl-ppc/recipes-bsp/u-boot/u-boot_git.bb +++ b/meta-fsl-ppc/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 |