Commit e186851a authored by Chris Packham's avatar Chris Packham Committed by Tom Rini

Makefile: Add U_BOOT_TZ and include in version

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: 's avatarSimon Glass <sjg@chromium.org>
Signed-off-by: 's avatarChris Packham <judge.packham@gmail.com>
parent 0373a7e9
......@@ -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
......
......@@ -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[];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment