Append the shortened git revision to the u-boot version

This add the first 7 characters of the git sha-1 to the compiled in
u-boot version.

With  this change the serial console displays the following version information:

U-Boot 2014.04-gee425f9 (Oct 01 2014 - 22:20:35) Allwinner Technology

Without the version looks like this:

U-Boot 2014.04 (Oct 01 2014 - 21:55:57) Allwinner Technology


Signed-off-by: Christian Ege <k4230r6@gmail.com>
This commit is contained in:
Christian Ege 2014-10-01 22:42:20 +02:00
parent 998cbf3544
commit 62d877b9e9

View File

@ -14,3 +14,5 @@ IMAGE_CLASSES += "sdcard_image-sunxi"
IMAGE_FSTYPES += "ext3 tar.gz sunxi-sdimg"
MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"
UBOOT_LOCALVERSION = "-g${@d.getVar('SRCPV', True).partition('+')[2][0:7]}"