mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
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>
This commit is contained in:
parent
0373a7e91b
commit
e186851ae4
2 changed files with 3 additions and 2 deletions
3
Makefile
3
Makefile
|
@ -1232,7 +1232,8 @@ endef
|
||||||
|
|
||||||
define filechk_timestamp.h
|
define filechk_timestamp.h
|
||||||
(LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"'; \
|
(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
|
endef
|
||||||
|
|
||||||
$(version_h): include/config/uboot.release FORCE
|
$(version_h): include/config/uboot.release FORCE
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define U_BOOT_VERSION_STRING U_BOOT_VERSION " (" U_BOOT_DATE " - " \
|
#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__
|
#ifndef __ASSEMBLY__
|
||||||
extern const char version_string[];
|
extern const char version_string[];
|
||||||
|
|
Loading…
Reference in a new issue