summaryrefslogtreecommitdiff
path: root/cpu/mpc8xx
diff options
context:
space:
mode:
authorPeter Tyser <ptyser@xes-inc.com>2008-11-03 09:30:59 -0600
committerWolfgang Denk <wd@denx.de>2008-12-06 23:36:43 +0100
commit561858ee7d0274c3e89dc98d4d0698cb6fcf6fd9 (patch)
tree592e0f4f06597a923de9c0ae3afa762ca517ee04 /cpu/mpc8xx
parent1450c4a6682378567030414a9f1198c39b7730c7 (diff)
downloadu-boot-imx-561858ee7d0274c3e89dc98d4d0698cb6fcf6fd9.zip
u-boot-imx-561858ee7d0274c3e89dc98d4d0698cb6fcf6fd9.tar.gz
u-boot-imx-561858ee7d0274c3e89dc98d4d0698cb6fcf6fd9.tar.bz2
Update U-Boot's build timestamp on every compile
Use the GNU 'date' command to auto-generate a new U-Boot timestamp on every compile. Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Diffstat (limited to 'cpu/mpc8xx')
-rw-r--r--cpu/mpc8xx/start.S3
-rw-r--r--cpu/mpc8xx/video.c6
2 files changed, 7 insertions, 2 deletions
diff --git a/cpu/mpc8xx/start.S b/cpu/mpc8xx/start.S
index 7b75660..45c902e 100644
--- a/cpu/mpc8xx/start.S
+++ b/cpu/mpc8xx/start.S
@@ -39,6 +39,7 @@
*/
#include <config.h>
#include <mpc8xx.h>
+#include <timestamp.h>
#include <version.h>
#define CONFIG_8xx 1 /* needed for Linux kernel header files */
@@ -87,7 +88,7 @@
.globl version_string
version_string:
.ascii U_BOOT_VERSION
- .ascii " (", __DATE__, " - ", __TIME__, ")"
+ .ascii " (", U_BOOT_DATE, " - ", U_BOOT_TIME, ")"
.ascii CONFIG_IDENT_STRING, "\0"
. = EXC_OFF_SYS_RESET
diff --git a/cpu/mpc8xx/video.c b/cpu/mpc8xx/video.c
index 2e6a22a..5479644 100644
--- a/cpu/mpc8xx/video.c
+++ b/cpu/mpc8xx/video.c
@@ -32,7 +32,10 @@
#include <stdarg.h>
#include <common.h>
#include <config.h>
+#ifdef VIDEO_INFO
#include <version.h>
+#include <timestamp.h>
+#endif
#include <i2c.h>
#include <linux/types.h>
#include <devices.h>
@@ -1174,7 +1177,8 @@ static void *video_logo (void)
easylogo_plot (VIDEO_LOGO_ADDR, screen, width, 0, 0);
#ifdef VIDEO_INFO
- sprintf (info, "%s (%s - %s) ", U_BOOT_VERSION, __DATE__, __TIME__);
+ sprintf (info, "%s (%s - %s) ",
+ U_BOOT_VERSION, U_BOOT_DATE, U_BOOT_TIME);
video_drawstring (VIDEO_INFO_X, VIDEO_INFO_Y, info);
sprintf (info, "(C) 2002 DENX Software Engineering");