All of lore.kernel.org
 help / color / mirror / Atom feed
From: Masahiro Yamada <yamada.m@jp.panasonic.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 0/5] Do not use __DATE__ and __TIME__ anymore
Date: Thu, 17 Apr 2014 20:41:14 +0900	[thread overview]
Message-ID: <20140417204113.6CEC.AA925319@jp.panasonic.com> (raw)
In-Reply-To: <20140417110732.85F553803FE@gemini.denx.de>

Hi Wolfgang

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

> Dear Masahiro,
> 
> In message <1397721632-18797-1-git-send-email-yamada.m@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

  reply	other threads:[~2014-04-17 11:41 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-17  8:00 [U-Boot] [PATCH 0/5] Do not use __DATE__ and __TIME__ anymore Masahiro Yamada
2014-04-17  8:00 ` [U-Boot] [PATCH 1/5] rand: do not surround function declarations by #ifdef Masahiro Yamada
2014-04-17  8:00 ` [U-Boot] [PATCH 2/5] net: rename and refactor eth_rand_ethaddr() function Masahiro Yamada
2014-04-17  8:08   ` Joe Hershberger
2014-04-17 11:09   ` Wolfgang Denk
2014-04-17  8:00 ` [U-Boot] [PATCH 3/5] blackfin: replace bfin_gen_rand_mac() with eth_random_addr() Masahiro Yamada
2014-04-17 19:07   ` Mike Frysinger
2014-04-18  9:25     ` Masahiro Yamada
2014-04-17  8:00 ` [U-Boot] [PATCH 4/5] fs: ubifs: drop __DATE__ and __TIME__ Masahiro Yamada
2014-04-17  8:00 ` [U-Boot] [PATCH 5/5] kbuild: build with -Werror=date-time if the compiler supports it Masahiro Yamada
2014-04-17 11:07 ` [U-Boot] [PATCH 0/5] Do not use __DATE__ and __TIME__ anymore Wolfgang Denk
2014-04-17 11:41   ` Masahiro Yamada [this message]
2014-04-17 14:48     ` Wolfgang Denk
2014-04-17 19:10 ` Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140417204113.6CEC.AA925319@jp.panasonic.com \
    --to=yamada.m@jp.panasonic.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.