diff options
author | Chris Packham <judge.packham@gmail.com> | 2015-05-10 12:02:09 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-05-27 20:35:55 +0300 |
commit | e186851ae4f0a4c8b75108930b61a5f74baf6ed4 (patch) | |
tree | 8cff2b18403594da053a3cc97878bfc66ef98808 | |
parent | 0373a7e91b1fc1c3652669a4481219daf06e12e9 (diff) | |
download | u-boot-e186851ae4f0a4c8b75108930b61a5f74baf6ed4.tar.xz |
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: Simon Glass <sjg@chromium.org>
Signed-off-by: Chris Packham <judge.packham@gmail.com>
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | include/version.h | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -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 diff --git a/include/version.h b/include/version.h index d6c7cf2ae6..777e9f68fa 100644 --- a/include/version.h +++ b/include/version.h @@ -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[]; |