linux: override build timestamp for reproducible builds
authorGilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Wed, 23 Nov 2016 12:58:44 +0000 (13:58 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 23 Nov 2016 21:56:49 +0000 (22:56 +0100)
commitaf109fb44469a89b2576d167b02f02a811d13c12
tree851afd72048956cfcdf2570cc87a18769183291f
parent59f9c4ca9feb2c070df508c7196f06a6e87307b4
linux: override build timestamp for reproducible builds

Linux kernel include a few information about build environment in its binary.
This feature is incompatible with BR2_REPRODUCIBLE. This patch overload build
information when BR2_REPRODUCIBLE is enabled.

Note that usage of KBUILD_BUILD_TIMESTAMP is not mandatory since Buildroot
use `fakedate'. However, native solution is prefered when upstream
provide one.

Signed-off-by: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Jérôme Pouiller <jezz@sysmic.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
linux/linux.mk