• Masahiro Yamada's avatar
    kbuild: build with -Werror=date-time if the compiler supports it · 65bb6d8d
    Masahiro Yamada authored
    Using __DATE__, __TIME__ would make the build non-deterministic.
    
    If the code needs to refer to build date/time, use U_BOOT_DATE and
    U_BOOT_TIME in include/generated/timestamp_autogenerated.h instead.
    
    This commit has been imported from Linux Kernel,
    which should be applied to U-Boot too:
    
        commit fe7c36c7bde12190341722af69358e42171162f3
        Author: Josh Triplett <josh@joshtriplett.org>
        Date:   Mon Dec 23 13:56:06 2013 -0800
    
        Makefile: Build with -Werror=date-time if the compiler supports it
    
        GCC 4.9 and newer have a new warning -Wdate-time, which warns on any use
        of __DATE__, __TIME__, or __TIMESTAMP__, which would make the build
        non-deterministic.  Now that the kernel does not use any of those
        macros, turn on -Werror=date-time if available, to keep it that way.
    
        The kernel already (optionally) records this information at build time
        in a single place; other kernel code should not duplicate that.
    Signed-off-by: default avatarJosh Triplett <josh@joshtriplett.org>
    Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
    Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
    65bb6d8d
Name
Last commit
Last update
Licenses Loading commit data...
api Loading commit data...
arch Loading commit data...
board Loading commit data...
common Loading commit data...
disk Loading commit data...
doc Loading commit data...
drivers Loading commit data...
dts Loading commit data...
examples Loading commit data...
fs Loading commit data...
include Loading commit data...
lib Loading commit data...
nand_spl Loading commit data...
net Loading commit data...
post Loading commit data...
scripts Loading commit data...
spl Loading commit data...
test Loading commit data...
tools Loading commit data...
.checkpatch.conf Loading commit data...
.gitignore Loading commit data...
CREDITS Loading commit data...
Kbuild Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
README Loading commit data...
boards.cfg Loading commit data...
config.mk Loading commit data...
mkconfig Loading commit data...
snapshot.commit Loading commit data...