[U-Boot] [PATCH 0/5] Do not use __DATE__ and __TIME__ anymore

Masahiro Yamada yamada.m at jp.panasonic.com
Thu Apr 17 13:41:14 CEST 2014


Hi Wolfgang

On Thu, 17 Apr 2014 13:07:32 +0200
Wolfgang Denk <wd at denx.de> wrote:

> Dear Masahiro,
> 
> In message <1397721632-18797-1-git-send-email-yamada.m at jp.panasonic.com> you wrote:
> > 
> > The aim of this series is to prohibit using __DATE__ and __TIME__.
> 
> What is bad about using these?


include/generated/timestamp_autogenerated.h provides us
the last build date correctly because it is touched every time.

__DATE__ or __TIME__ might give us unexpectedly old date
because it is not updated unless the source file is modified.


One more reason.
Using __DATE__ / __TIME__  here and there makes the binary
comparison difficult.

I often use MD5SUM comparison
to confirm that my changes to the build system still produce the same
output.

I want to generate the completely same result
if the source code is the same.

This can be achieved by simply disabling the timestamp file  and version
file.
I want to gather timestamp stuff to one place for easy control of it.



Best Regards
Masahiro Yamada



More information about the U-Boot mailing list