kumquat-buildroot/toolchain
Jérôme Pouiller 76838f6341 reproducible: fix DATE/TIME macros in toolchain-wrapper
The use of the __DATE__ and __TIME__ macros are one of the most common
sources of non-reproducible binaries. In order to fix that, gcc 7 supports
the SOURCE_DATE_EPOCH variable:

https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=e3e8c48c4a494d9da741c1c8ea6c4c0b7c4ff934

This patch take advantage of toolchain-wrapper to provide support of
SOURCE_DATE_EPOCH to older gcc versions.

Function get_source_date_epoch() come directly from gcc git.

This work was sponsored by `BA Robotic Systems'.

[Peter: use sizeof for character array sizes, make function static,
	extend commit message, add upstream gcc commit]
Signed-off-by: Jérôme Pouiller <jezz@sysmic.org>
Reviewed-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2017-02-07 21:45:01 +01:00
..
toolchain toolchain: extend musl workaround for recent kernels 2016-12-17 15:26:11 +01:00
toolchain-buildroot uclibc: allow to build aarch64 internal toolchain 2017-02-03 20:58:56 +01:00
toolchain-external toolchain-external: Update Synopsys prebuilt toolchain for ARC cores 2017-02-04 23:57:43 +01:00
Config.in bfin: change default to bf532, internal toolchain !bf6xx 2016-08-27 23:07:11 +02:00
helpers.mk toolchain-external: support gcc < 4.3 2016-11-25 22:59:10 +01:00
toolchain-common.in toolchain: add 4.9.x choice for headers 2016-12-12 00:02:03 +01:00
toolchain-wrapper.c reproducible: fix DATE/TIME macros in toolchain-wrapper 2017-02-07 21:45:01 +01:00
toolchain-wrapper.mk arch/Config.in.mips: add support for XBurst cores 2016-11-09 21:36:34 +01:00
toolchain.mk toolchain: use the <PKG>_TARGET_FINALIZE_HOOKS 2016-07-18 23:30:46 +02:00