From 62d877b9e9a1bfd527205fd6385d9f3746694694 Mon Sep 17 00:00:00 2001 From: Christian Ege Date: Wed, 1 Oct 2014 22:42:20 +0200 Subject: [PATCH] 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 --- conf/machine/include/sunxi.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf/machine/include/sunxi.inc b/conf/machine/include/sunxi.inc index 03b9887..245cc9f 100644 --- a/conf/machine/include/sunxi.inc +++ b/conf/machine/include/sunxi.inc @@ -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]}" \ No newline at end of file