Signed-off-by: Florian Bäuerle <[email protected]>
---
platforms/barebox.in | 3 +++
rules/barebox.make | 9 +++++++++
2 files changed, 12 insertions(+)
diff --git a/platforms/barebox.in b/platforms/barebox.in
index 645366e93..46f3d8ced 100644
--- a/platforms/barebox.in
+++ b/platforms/barebox.in
@@ -113,4 +113,7 @@ config BAREBOX_NEEDS_HOST_LZOP
lzop is used in order to compile lzop for your development
host.
+ This option is required to produce reproducible lzop-
+ compressed barebox images.
+
endif
diff --git a/rules/barebox.make b/rules/barebox.make
index 83a7126cc..080074f64 100644
--- a/rules/barebox.make
+++ b/rules/barebox.make
@@ -47,6 +47,15 @@ BAREBOX_WRAPPER_BLACKLIST := \
BAREBOX_CONF_OPT := $(call barebox-opts, BAREBOX)
BAREBOX_MAKE_OPT := $(BAREBOX_CONF_OPT)
+ifndef PTXCONF_SETUP_DISABLE_REPRODUCIBLE
+BAREBOX_MAKE_ENV := $(BAREBOX_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
+
BAREBOX_TAGS_OPT := TAGS tags cscope
ifdef PTXCONF_BAREBOX
--
2.19.2
_______________________________________________
ptxdist mailing list
[email protected]