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>
This commit is contained in:
committed by
Wolfgang Denk
parent
1450c4a668
commit
561858ee7d
@@ -28,7 +28,7 @@
|
||||
#include <malloc.h>
|
||||
#include <devices.h>
|
||||
#include <net.h>
|
||||
#include <version.h>
|
||||
#include <timestamp.h>
|
||||
#include <dtt.h>
|
||||
#include <mpc824x.h>
|
||||
#include <asm/processor.h>
|
||||
@@ -45,7 +45,7 @@ int checkboard(void)
|
||||
char buf[32];
|
||||
|
||||
puts ("Board: BMW MPC8245/KAHLUA2 - CHRP (MAP B)\n");
|
||||
printf("Built: %s at %s\n", __DATE__ , __TIME__ );
|
||||
printf("Built: %s at %s\n", U_BOOT_DATE, U_BOOT_TIME);
|
||||
/* printf("MPLD: Revision %d\n", SYS_REVID_GET()); */
|
||||
printf("Local Bus at %s MHz\n", strmhz(buf, busfreq));
|
||||
return 0;
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <pci.h>
|
||||
#include <ide.h>
|
||||
#include <netdev.h>
|
||||
#include <timestamp.h>
|
||||
#include "piix_pci.h"
|
||||
#include "eXalion.h"
|
||||
|
||||
@@ -40,7 +41,7 @@ int checkboard (void)
|
||||
char buf[32];
|
||||
|
||||
printf ("Board: eXalion MPC824x - CHRP (MAP B)\n");
|
||||
printf ("Built: %s at %s\n", __DATE__, __TIME__);
|
||||
printf ("Built: %s at %s\n", U_BOOT_DATE, U_BOOT_TIME);
|
||||
printf ("Local Bus: %s MHz\n", strmhz (buf, busfreq));
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -762,12 +762,13 @@ static uchar *key_match (uchar *kbd_data)
|
||||
#ifdef CONFIG_LCD_INFO
|
||||
#include <lcd.h>
|
||||
#include <version.h>
|
||||
#include <timestamp.h>
|
||||
|
||||
void lcd_show_board_info(void)
|
||||
{
|
||||
char temp[32];
|
||||
|
||||
lcd_printf ("%s (%s - %s)\n", U_BOOT_VERSION, __DATE__, __TIME__);
|
||||
lcd_printf ("%s (%s - %s)\n", U_BOOT_VERSION, U_BOOT_DATE, U_BOOT_TIME);
|
||||
lcd_printf ("(C) 2008 DENX Software Engineering GmbH\n");
|
||||
lcd_printf (" Wolfgang DENK, wd@denx.de\n");
|
||||
#ifdef CONFIG_LCD_INFO_BELOW_LOGO
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include <mpc824x.h>
|
||||
#include <netdev.h>
|
||||
#include <asm/processor.h>
|
||||
#include <timestamp.h>
|
||||
|
||||
#include "mousse.h"
|
||||
#include "m48t59y.h"
|
||||
@@ -42,7 +43,7 @@ int checkboard (void)
|
||||
char buf[32];
|
||||
|
||||
puts ("Board: MOUSSE MPC8240/KAHLUA - CHRP (MAP B)\n");
|
||||
printf ("Built: %s at %s\n", __DATE__, __TIME__);
|
||||
printf ("Built: %s at %s\n", U_BOOT_DATE, U_BOOT_TIME);
|
||||
printf ("MPLD: Revision %d\n", SYS_REVID_GET ());
|
||||
printf ("Local Bus: %s MHz\n", strmhz (buf, busfreq));
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
|
||||
#include <common.h>
|
||||
#include <exports.h>
|
||||
#include <timestamp.h>
|
||||
#include "../drivers/net/smc91111.h"
|
||||
|
||||
#define SMC_BASE_ADDRESS CONFIG_SMC91111_BASE
|
||||
@@ -173,7 +174,7 @@ int eeprom(int argc, char *argv[])
|
||||
/* Print help message */
|
||||
if (argv[1][1] == 'h') {
|
||||
printf("VoiceBlue EEPROM writer\n");
|
||||
printf("Built: %s at %s\n", __DATE__ , __TIME__ );
|
||||
printf("Built: %s at %s\n", U_BOOT_DATE, U_BOOT_TIME);
|
||||
printf("Usage:\n\t<mac_address> [<element_1>] [<...>]\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <command.h>
|
||||
#include "karef.h"
|
||||
#include "karef_version.h"
|
||||
#include <timestamp.h>
|
||||
#include <asm/processor.h>
|
||||
#include <asm/io.h>
|
||||
#include <spd_sdram.h>
|
||||
@@ -299,7 +300,7 @@ int checkboard (void)
|
||||
"Serial Number: %d\n", sernum);
|
||||
printf ("%s\n", KAREF_U_BOOT_REL_STR);
|
||||
|
||||
printf ("Built %s %s by %s\n", __DATE__, __TIME__, BUILDUSER);
|
||||
printf ("Built %s %s by %s\n", U_BOOT_DATE, U_BOOT_TIME, BUILDUSER);
|
||||
if (sbcommon_get_master()) {
|
||||
printf("Slot 0 - Master\nSlave board");
|
||||
if (sbcommon_secondary_present())
|
||||
@@ -366,7 +367,8 @@ int misc_init_r (void)
|
||||
setenv("ubrelver", KAREF_U_BOOT_REL_STR);
|
||||
|
||||
memset(envstr, 0, 255);
|
||||
sprintf (envstr, "Built %s %s by %s", __DATE__, __TIME__, BUILDUSER);
|
||||
sprintf (envstr, "Built %s %s by %s",
|
||||
U_BOOT_DATE, U_BOOT_TIME, BUILDUSER);
|
||||
setenv("bldstr", envstr);
|
||||
saveenv();
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <command.h>
|
||||
#include "metrobox.h"
|
||||
#include "metrobox_version.h"
|
||||
#include <timestamp.h>
|
||||
#include <asm/processor.h>
|
||||
#include <asm/io.h>
|
||||
#include <spd_sdram.h>
|
||||
@@ -270,7 +271,7 @@ int checkboard (void)
|
||||
printf ("Board: Sandburst Corporation MetroBox Serial Number: %d\n", sernum);
|
||||
printf ("%s\n", METROBOX_U_BOOT_REL_STR);
|
||||
|
||||
printf ("Built %s %s by %s\n", __DATE__, __TIME__, BUILDUSER);
|
||||
printf ("Built %s %s by %s\n", U_BOOT_DATE, U_BOOT_TIME, BUILDUSER);
|
||||
if (sbcommon_get_master()) {
|
||||
printf("Slot 0 - Master\nSlave board");
|
||||
if (sbcommon_secondary_present())
|
||||
@@ -335,7 +336,8 @@ int misc_init_r (void)
|
||||
setenv("ubrelver", METROBOX_U_BOOT_REL_STR);
|
||||
|
||||
memset(envstr, 0, 255);
|
||||
sprintf (envstr, "Built %s %s by %s", __DATE__, __TIME__, BUILDUSER);
|
||||
sprintf (envstr, "Built %s %s by %s",
|
||||
U_BOOT_DATE, U_BOOT_TIME, BUILDUSER);
|
||||
setenv("bldstr", envstr);
|
||||
saveenv();
|
||||
|
||||
|
||||
@@ -571,12 +571,13 @@ void ide_led (uchar led, uchar status)
|
||||
#ifdef CONFIG_LCD_INFO
|
||||
#include <lcd.h>
|
||||
#include <version.h>
|
||||
#include <timestamp.h>
|
||||
|
||||
void lcd_show_board_info(void)
|
||||
{
|
||||
char temp[32];
|
||||
|
||||
lcd_printf ("%s (%s - %s)\n", U_BOOT_VERSION, __DATE__, __TIME__);
|
||||
lcd_printf ("%s (%s - %s)\n", U_BOOT_VERSION, U_BOOT_DATE, U_BOOT_TIME);
|
||||
lcd_printf ("(C) 2008 DENX Software Engineering GmbH\n");
|
||||
lcd_printf (" Wolfgang DENK, wd@denx.de\n");
|
||||
#ifdef CONFIG_LCD_INFO_BELOW_LOGO
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
|
||||
#include <common.h>
|
||||
#include <exports.h>
|
||||
#include <timestamp.h>
|
||||
#include <s3c2400.h>
|
||||
#include "tsc2000.h"
|
||||
#include "rs485.h"
|
||||
@@ -296,7 +297,7 @@ int trab_fkt (int argc, char *argv[])
|
||||
int do_info (void)
|
||||
{
|
||||
printf ("Stand-alone application for TRAB board function test\n");
|
||||
printf ("Built: %s at %s\n", __DATE__ , __TIME__ );
|
||||
printf ("Built: %s at %s\n", U_BOOT_DATE, U_BOOT_TIME);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
|
||||
#include <common.h>
|
||||
#include <exports.h>
|
||||
#include <timestamp.h>
|
||||
#include "../drivers/net/smc91111.h"
|
||||
|
||||
#define SMC_BASE_ADDRESS CONFIG_SMC91111_BASE
|
||||
@@ -169,7 +170,7 @@ int eeprom(int argc, char *argv[])
|
||||
/* Print help message */
|
||||
if (argv[1][1] == 'h') {
|
||||
printf("VoiceBlue EEPROM writer\n");
|
||||
printf("Built: %s at %s\n", __DATE__ , __TIME__ );
|
||||
printf("Built: %s at %s\n", U_BOOT_DATE, U_BOOT_TIME);
|
||||
printf("Usage:\n\t<mac_address> [<element_1>] [<...>]\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user