From a8254d32fd839ebd0a96863579832678eb6e0038 Mon Sep 17 00:00:00 2001 From: Gilles Chanteperdrix Date: Wed, 23 Nov 2016 13:58:46 +0100 Subject: [PATCH] busybox: disable build timestamps for reproducible builds MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Busybox includes some information about the build environment in its binary. For BR2_REPRODUCIBLE, remove that information. Signed-off-by: Gilles Chanteperdrix Signed-off-by: Jérôme Pouiller Reviewed-by: "Yann E. MORIN" Reviewed-by: Arnout Vandecappelle (Essensium/Mind) Reviewed-by: Thomas Petazzoni Signed-off-by: Thomas Petazzoni --- package/busybox/busybox.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk index fc23a90a29..f4a241d38b 100644 --- a/package/busybox/busybox.mk +++ b/package/busybox/busybox.mk @@ -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) \ -- 2.30.2