busybox: disable build timestamps for reproducible builds
authorGilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Wed, 23 Nov 2016 12:58:46 +0000 (13:58 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 23 Nov 2016 21:56:53 +0000 (22:56 +0100)
Busybox includes some information about the build environment in its
binary. For BR2_REPRODUCIBLE, remove that information.

Signed-off-by: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Signed-off-by: Jérôme Pouiller <jezz@sysmic.org>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/busybox/busybox.mk

index fc23a90a29d3bdae2549d22e125d7a07f9c5834f..f4a241d38bc24433af710eefbfd82d3169b8bacb 100644 (file)
@@ -36,6 +36,12 @@ BUSYBOX_MAKE_ENV = \
        $(TARGET_MAKE_ENV) \
        CFLAGS="$(BUSYBOX_CFLAGS)" \
        CFLAGS_busybox="$(BUSYBOX_CFLAGS_busybox)"
+
+ifeq ($(BR2_REPRODUCIBLE),y)
+BUSYBOX_MAKE_ENV += \
+       KCONFIG_NOTIMESTAMP=1
+endif
+
 BUSYBOX_MAKE_OPTS = \
        CC="$(TARGET_CC)" \
        ARCH=$(KERNEL_ARCH) \