]> git.sur5r.net Git - u-boot/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)
committerTom Rini <trini@konsulko.com>
Wed, 27 May 2015 17:35:55 +0000 (13:35 -0400)
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 bc47d98931ab7790f6d394c85118f33af561d912..386972890dbf0428b79b86a99a72952d232109c8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1232,7 +1232,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[];