Dear Peter Tyser, In message <[EMAIL PROTECTED]> you wrote: > Use the GNU 'date' command to auto-generate a new U-Boot > timestamp on every compile. ... > --- a/Makefile > +++ b/Makefile > @@ -368,6 +368,10 @@ $(VERSION_FILE): > @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' > "$(U_BOOT_VERSION)" \ > '$(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion > $(TOPDIR))' \ > ) > [EMAIL PROTECTED] > + @( printf '#define U_BOOT_DATE "%s"\n' '$(shell date +"%b %d > %C%y")' \ > + ) >> [EMAIL PROTECTED] > + @( printf '#define U_BOOT_TIME "%s"\n' '$(shell date +"%T")' \ > + ) >> [EMAIL PROTECTED] > @cmp -s $@ [EMAIL PROTECTED] && rm -f [EMAIL PROTECTED] || mv > -f [EMAIL PROTECTED] $@
Please do not do this here. Use a separate target instead. As you can see, we take care NOT to create a new VERSION_FILE for each build, but only when it eally changed. Your change forces it to change with each build, which we tried to avoid. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED] It is impractical for the standard to attempt to constrain the behavior of code that does not obey the constraints of the standard. - Doug Gwyn _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot