[U-Boot] [PATCH v2 0/5] Prohibit __DATE__ and __TIME__ (+ refactor random MAC addr)
Masahiro Yamada
yamada.m at jp.panasonic.com
Fri Apr 18 12:09:46 CEST 2014
The main aim of this series is to prohibit using __DATE__ and __TIME__.
Using __DATE__, __TIME__ in source files would make the build
non-deterministic.
We should be able to generate the exactly same binary if the source
code is the same.
This is necessary, for example, I sometimes want to confirm my changes
to the build system still produces the same output.
So I want to gather timestamp things to one place
(include/generated/timestamp_autogenerated.h) and control it.
Currently __DATE__, __TIME__ are used in two files.
[1] arch/blackfin/include/asm/net.h
Blackfin is using __DATE__ as the seed for the random ethernet address.
This feature will be replaced with genericly-used eth_random_addr().
[2] fs/ubifs/super.c
__DATE__ and __TIME__ are used in dbg_msg(), so simply droppred.
Before doing [1], I've renamed eth_rand_ethaddr() to eth_rand_addr()
for consistency.
And it has been refactored as an inline function, which would be
more easily handled.
Changes for v2:
- Improve commit desctiption and comments in this cover letter
- Add the signed-off of the original auther of 5/5.
No change in code. Update only in comments.
Masahiro Yamada (5):
rand: do not surround function declarations by #ifdef
net: rename and refactor eth_rand_ethaddr() function
blackfin: replace bfin_gen_rand_mac() with eth_random_addr()
fs: ubifs: drop __DATE__ and __TIME__
kbuild: build with -Werror=date-time if the compiler supports it
Makefile | 3 +++
arch/blackfin/include/asm/net.h | 28 ---------------------------
board/bct-brettl2/bct-brettl2.c | 3 +--
board/bf518f-ezbrd/bf518f-ezbrd.c | 3 +--
board/bf526-ezbrd/bf526-ezbrd.c | 3 +--
board/bf527-ezkit/bf527-ezkit.c | 3 +--
board/bf537-minotaur/bf537-minotaur.c | 3 +--
board/bf537-pnav/bf537-pnav.c | 3 +--
board/bf537-srv1/bf537-srv1.c | 3 +--
board/bf537-stamp/bf537-stamp.c | 3 +--
board/buffalo/lsxl/lsxl.c | 2 +-
board/cm-bf527/cm-bf527.c | 3 +--
board/cm-bf537e/cm-bf537e.c | 3 +--
board/cm-bf537u/cm-bf537u.c | 3 +--
board/dnp5370/dnp5370.c | 3 +--
board/ip04/ip04.c | 3 +--
board/tcm-bf518/tcm-bf518.c | 3 +--
board/tcm-bf537/tcm-bf537.c | 3 +--
drivers/net/dm9000x.c | 2 +-
drivers/net/ftmac110.c | 2 +-
fs/ubifs/super.c | 1 -
include/common.h | 2 --
include/configs/bct-brettl2.h | 1 +
include/configs/bf518f-ezbrd.h | 2 +-
include/configs/bf526-ezbrd.h | 2 +-
include/configs/bf527-ezkit.h | 2 +-
include/configs/bf537-minotaur.h | 1 +
include/configs/bf537-pnav.h | 2 +-
include/configs/bf537-srv1.h | 2 +-
include/configs/bf537-stamp.h | 2 +-
include/configs/cm-bf527.h | 2 +-
include/configs/cm-bf537e.h | 2 +-
include/configs/cm-bf537u.h | 2 +-
include/configs/dnp5370.h | 2 ++
include/configs/ip04.h | 1 +
include/configs/tcm-bf518.h | 2 +-
include/configs/tcm-bf537.h | 2 +-
include/net.h | 36 ++++++++++++++++++-----------------
net/eth.c | 22 ---------------------
39 files changed, 56 insertions(+), 114 deletions(-)
delete mode 100644 arch/blackfin/include/asm/net.h
--
1.8.3.2
More information about the U-Boot
mailing list