From 2b2ed58f06966a15b026e4ac8546ae8dc6f80c4c Mon Sep 17 00:00:00 2001 From: Piotr Dymacz Date: Fri, 23 Sep 2016 18:19:02 +0200 Subject: [PATCH] Get rid off __DATE__ and __TIME__, use value generated with date command --- u-boot/Makefile | 1 + u-boot/common/command.c | 2 +- u-boot/lib_mips/board.c | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/u-boot/Makefile b/u-boot/Makefile index 725fb47..92bcbe3 100644 --- a/u-boot/Makefile +++ b/u-boot/Makefile @@ -364,6 +364,7 @@ unconfig: config_common: @ >include/config.h @$(call include_add,soc/soc_list.h) + @$(call define_add,CONFIG_BUILD_DATE_UTC,$(shell date -u +"%Y-%m-%d")) ar933x_common: unconfig config_common @$(call define_add,CFG_AG7240_NMACS,2) diff --git a/u-boot/common/command.c b/u-boot/common/command.c index 005d1af..7826dbe 100644 --- a/u-boot/common/command.c +++ b/u-boot/common/command.c @@ -27,7 +27,7 @@ int do_version(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) extern char version_string[]; puts("Version and build date:\n"); - printf(" %s\n " __DATE__ ", " __TIME__ "\n\n", version_string); + printf(" %s, " MK_STR(CONFIG_BUILD_DATE_UTC) "\n\n", version_string); puts("Modification by:\n"); puts(" Piotr Dymacz \n"); diff --git a/u-boot/lib_mips/board.c b/u-boot/lib_mips/board.c index 707577c..166397d 100644 --- a/u-boot/lib_mips/board.c +++ b/u-boot/lib_mips/board.c @@ -99,7 +99,8 @@ static int display_banner(void) printf("\n***************************************" "\n* %s *" - "\n* " __DATE__ ", " __TIME__ " *" + "\n* Build: " + MK_STR(CONFIG_BUILD_DATE_UTC) " *" "\n***************************************\n\n", version_string); -- 2.25.1