mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Baeuerle, Florian" <Florian.Baeuerle@allegion.com>
To: "ptxdist@pengutronix.de" <ptxdist@pengutronix.de>
Subject: [ptxdist] [PATCH v3 3/3] barebox_mlo: add support for reproducible build
Date: Fri, 21 Dec 2018 10:07:01 +0000	[thread overview]
Message-ID: <20181221100640.8126-3-florian.baeuerle@allegion.com> (raw)
In-Reply-To: <20181221100640.8126-1-florian.baeuerle@allegion.com>

Signed-off-by: Florian Bäuerle <florian.baeuerle@allegion.com>
---
 rules/barebox_mlo.make | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/rules/barebox_mlo.make b/rules/barebox_mlo.make
index 368da0e8f..2f1da0ca7 100644
--- a/rules/barebox_mlo.make
+++ b/rules/barebox_mlo.make
@@ -39,7 +39,6 @@ BAREBOX_MLO_WRAPPER_BLACKLIST := \
 	TARGET_BUILD_ID
 
 BAREBOX_MLO_PATH	:= PATH=$(CROSS_PATH)
-BAREBOX_MLO_CONF_ENV	:= KCONFIG_NOTIMESTAMP=1
 BAREBOX_MLO_CONF_TOOL	:= kconfig
 BAREBOX_MLO_CONF_OPT	:= \
 			V=$(PTXDIST_VERBOSE) \
@@ -49,6 +48,15 @@ BAREBOX_MLO_CONF_OPT	:= \
 
 BAREBOX_MLO_MAKE_OPT	:= $(BAREBOX_MLO_CONF_OPT)
 
+ifndef PTXCONF_SETUP_DISABLE_REPRODUCIBLE
+BAREBOX_MLO_MAKE_ENV := $(BAREBOX_MLO_MAKE_ENV) \
+	SOURCE_DATE_EPOCH="$(SOURCE_DATE_EPOCH)" \
+	KBUILD_BUILD_TIMESTAMP="$(shell date --utc --date @$(SOURCE_DATE_EPOCH))" \
+	KBUILD_BUILD_VERSION="0" \
+	KBUILD_BUILD_USER="ptxdist" \
+	KBUILD_BUILD_HOST="ptxdist"
+endif
+
 ifdef PTXCONF_BAREBOX_MLO
 $(BAREBOX_MLO_CONFIG):
 	@echo
-- 
2.19.2

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  parent reply	other threads:[~2018-12-21 10:07 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-12 14:52 [ptxdist] [PATCH v2 1/4] config/setup: make reproducible builds configurable Baeuerle, Florian
2018-12-12 14:52 ` [ptxdist] [PATCH v2 2/4] barebox: depend on HOST_LZOP Baeuerle, Florian
2018-12-13 11:16   ` Michael Olbrich
2018-12-13 13:02     ` Baeuerle, Florian
2018-12-13 13:34       ` Michael Olbrich
2018-12-14 11:54         ` Baeuerle, Florian
2018-12-12 14:52 ` [ptxdist] [PATCH v2 3/4] barebox: add support for reproducible build Baeuerle, Florian
2018-12-12 14:52 ` [ptxdist] [PATCH v2 4/4] barebox_mlo: " Baeuerle, Florian
2018-12-21 10:06 ` [ptxdist] [PATCH v3 1/3] config/setup: make reproducible builds configurable Baeuerle, Florian
2018-12-21 10:07   ` [ptxdist] [PATCH v3 2/3] barebox: add support for reproducible build Baeuerle, Florian
2018-12-21 10:07   ` Baeuerle, Florian [this message]
2019-02-08  9:33   ` [ptxdist] [PATCH v3 1/3] config/setup: make reproducible builds configurable Baeuerle, Florian
2019-02-08 13:48   ` Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181221100640.8126-3-florian.baeuerle@allegion.com \
    --to=florian.baeuerle@allegion.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox