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 <lynxis@fe80.eu> Reviewed-on: https://review.coreboot.org/c/coreboot/+/51364 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
parent
cf68f34fc2
commit
cbe2ed48e2
1 changed files with 2 additions and 1 deletions
3
Makefile
3
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)
|
||||
|
|
Loading…
Reference in a new issue