Skip to contentSkip to conversation

arch/x86/cpu/quark/mrc.c: Switch to U_BOOT_DATE / U_BOOT_TIME

PATCH New Tom Rini 2 participants 3 messages Feb 19, 2015 – Mar 25, 2015 x86

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 arch/x86/cpu/quark/mrc.c: Switch to U_BOOT_DATE / U_BOOT_TIME

Using __DATE__ and __TIME__ results in an error due to -Werror=date-time with gcc-4.9 (__DATE__ / __TIME__ might prevent reproducible builds) so switch these over to U_BOOT_DATE / U_BOOT_TIME

Cc Bin Meng <[email protected]>
Cc Simon Glass <[email protected]>
---
 arch/x86/cpu/quark/mrc.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/x86/cpu/quark/mrc.c +2 -1
index 7eb34c5..2efb94d 100644
@@ -34,6 +34,7 @@
  */
 
 #include <common.h>
+#include <version.h>
 #include <asm/arch/mrc.h>
 #include <asm/arch/msg_port.h>
 #include "mrc_util.h"
@@ -192,7 +193,7 @@ void mrc_init(struct mrc_params *mrc_params)
 	ENTERFN();
 
 	DPF(D_INFO, "MRC Version %04x %s %s\n", MRC_VERSION,
-	    __DATE__, __TIME__);
+	    U_BOOT_DATE, U_BOOT_TIME);
 
 	/* Set up the data structures used by mrc_mem_init() */
 	mrc_adjust_params(mrc_params);
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 arch/x86/cpu/quark/mrc.c: Switch to U_BOOT_DATE / U_BOOT_TIME

Quoted 11 lines · Tom Rini

Using __DATE__ and __TIME__ results in an error due to -Werror=date-time with gcc-4.9 (__DATE__ / __TIME__ might prevent reproducible builds) so switch these over to U_BOOT_DATE / U_BOOT_TIME

Cc Bin Meng <[email protected]>
Cc Simon Glass <[email protected]>
---
 arch/x86/cpu/quark/mrc.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
#2 lore raw

PATCH 1/1 arch/x86/cpu/quark/mrc.c: Switch to U_BOOT_DATE / U_BOOT_TIME

Quoted 6 lines · Simon Glass
Quoted 5 lines · Tom Rini

Using __DATE__ and __TIME__ results in an error due to -Werror=date-time with gcc-4.9 (__DATE__ / __TIME__ might prevent reproducible builds) so switch these over to U_BOOT_DATE / U_BOOT_TIME

Quoted 8 lines
Quoted 6 lines
Cc Bin Meng <[email protected]>
Cc Simon Glass <[email protected]>
---
 arch/x86/cpu/quark/mrc.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Applied to u-boot-x86, thanks!