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 | 9f56bcb81ee6e2887ad81e23ebe896668426084a (patch) | |
tree | 0b8e03bc25272475a0824614567cb7cbbed7b8fb /recipes-bsp/u-boot | |
parent | 290a669e5480792836d4f7769ba2ef6f49799323 (diff) | |
download | meta-fsl-ppc-9f56bcb81ee6e2887ad81e23ebe896668426084a.tar.gz |
u-boot: add git revision to the local version
Signed-off-by: Chunrong Guo <B40290@freescale.com>
Diffstat (limited to 'recipes-bsp/u-boot')
-rw-r--r-- | recipes-bsp/u-boot/u-boot_git.bb | 5 |
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 |