From ada431e6d4a61cfc4749806d54e83fb6d1570aec Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Tue, 9 Mar 2021 03:29:18 +0100 Subject: [PATCH] Makefile: export LANG LC_ALL TZ without using COREBOOT_EXPORTS LANG LC_ALL TZ are required for reproducible builds. Those environment should be always used for all builds in coreboot and for payloads. By using COREBOOT_EXPORTS those would be removed in payload builds. Change-Id: Iea965abbce23bf6ec408ef587da0a4c4ebc65a27 Signed-off-by: Alexander Couzens Reviewed-on: https://review.coreboot.org/c/coreboot/+/51363 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d942ee34ca..e307e1da75 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,9 @@ COREBOOT_EXPORTS += top src srck obj objutil objk LANG:=C LC_ALL:=C TZ:=UTC0 -COREBOOT_EXPORTS += LANG LC_ALL TZ +# don't use COREBOOT_EXPORTS to ensure build steps outside the coreboot build system +# are reproducible +export LANG LC_ALL TZ DOTCONFIG ?= $(top)/.config KCONFIG_CONFIG = $(DOTCONFIG)