From cbe2ed48e2d25878bcbd11d37af19fd7a0e6b982 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Tue, 9 Mar 2021 03:31:07 +0100 Subject: Makefile: set and export SOURCE_DATE_EPOCH Set SOURCE_DATE_EPOCH [1] to allow payload builds and tools to use this as arbitrary timestamp to allow reprocucible builds. [1] https://reproducible-builds.org/docs/source-date-epoch/ Change-Id: I2c870023d13ff4c95305c8aba1459c1fcaf18773 Signed-off-by: Alexander Couzens Reviewed-on: https://review.coreboot.org/c/coreboot/+/51364 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e307e1da75..1388977704 100644 --- a/Makefile +++ b/Makefile @@ -24,9 +24,10 @@ COREBOOT_EXPORTS += top src srck obj objutil objk LANG:=C LC_ALL:=C TZ:=UTC0 +SOURCE_DATE_EPOCH := $(shell $(top)/util/genbuild_h/genbuild_h.sh . | sed -n 's/^.define COREBOOT_BUILD_EPOCH\>.*"\(.*\)".*/\1/p') # don't use COREBOOT_EXPORTS to ensure build steps outside the coreboot build system # are reproducible -export LANG LC_ALL TZ +export LANG LC_ALL TZ SOURCE_DATE_EPOCH DOTCONFIG ?= $(top)/.config KCONFIG_CONFIG = $(DOTCONFIG) -- cgit v1.2.1