Skip to content

Do not use __DATE__ and __TIME__ anymore

Masahiro Yamada u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 5 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 5 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

Hi Wolfgang

Quoted 7 lines · On Thu, 17 Apr 2014 13:07:32 +0200 Wolfgang Denk <[email protected]> wrote:

Dear Masahiro,

Quoted 2 lines · In message <[email protected]> you…

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