]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Makefile: Add U_BOOT_TZ and include in version
authorChris Packham <judge.packham@gmail.com>
Sun, 10 May 2015 09:02:09 +0000 (21:02 +1200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:46:08 +0000 (22:46 +0200)
Define U_BOOT_TZ alongside U_BOOT_TIME and U_BOOT_DATE and use it to
include the timezone in the version output.

Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Chris Packham <judge.packham@gmail.com>
Makefile
include/version.h

index 3330897cd2d2cb301de0ba5bd8db92f18495abdc..d89cf357d1b9a490a5c13b99e12e2fa37762dc8d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1235,7 +1235,8 @@ endef
 
 define filechk_timestamp.h
        (LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"'; \
-       LC_ALL=C date +'#define U_BOOT_TIME "%T"')
+       LC_ALL=C date +'#define U_BOOT_TIME "%T"'; \
+       LC_ALL=C date +'#define U_BOOT_TZ "%z"')
 endef
 
 $(version_h): include/config/uboot.release FORCE
index d6c7cf2ae67f63d09b147e206c1338800d148b12..777e9f68fae321f8948a31cbe156cad08b437937 100644 (file)
@@ -19,7 +19,7 @@
 #endif
 
 #define U_BOOT_VERSION_STRING U_BOOT_VERSION " (" U_BOOT_DATE " - " \
-       U_BOOT_TIME ")" CONFIG_IDENT_STRING
+       U_BOOT_TIME " " U_BOOT_TZ ")" CONFIG_IDENT_STRING
 
 #ifndef __ASSEMBLY__
 extern const char version_string[];