
On Fri, 2008-10-17 at 17:51 -0500, Peter Tyser wrote:
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
I noticed that the build time of U-Boot was not updated on every compile which occassionally threw me for a loop as to whether a new U-Boot binary was programmed, etc. This patch updates a U_BOOT_DATE define on every compile which can then be used in place of the multiple "__DATE__ - __TIME__" preprocessor macros that are currently used.
This also ensures the timestamp will be the same for a board if it uses __TIME__ in multiple files.
Let me know if this would be accepted into mainline and I'll generate a formal patch updating all __DATE__/__TIME__ references.
Instead of U_BOOT_DATE, we could use U_BOOT_DATE (month, day, year) and U_BOOT_TIME (24 hour time) to provide more granularity if others want that level of control.
Peter