]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
arch/x86/cpu/quark/mrc.c: Switch to U_BOOT_DATE / U_BOOT_TIME
authorTom Rini <trini@ti.com>
Thu, 19 Feb 2015 11:58:57 +0000 (06:58 -0500)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 12:34:17 +0000 (14:34 +0200)
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 <bmeng.cn@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@ti.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/quark/mrc.c

index 65734e945643116d39aec5bd41e0e3e49f083804..6e774cbcd884e63b242daa4b16d80c5525ec4ab0 100644 (file)
@@ -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);