From 7a1fbdb1e61dbb76daf53f3ac291eed3a36dfb42 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Wed, 23 Aug 2017 23:48:13 +0200 Subject: Makefile: Keep list of exported variables This can be useful to unexport them later. Change-Id: I2ce9eff32d817ec190441550116376843abd1c11 Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/21162 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi Reviewed-by: Paul Menzel --- Makefile | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 343ec650f3..4d763403c3 100644 --- a/Makefile +++ b/Makefile @@ -30,24 +30,31 @@ ## SUCH DAMAGE. ## -export top := $(CURDIR) -export src := src -export srck := $(top)/util/kconfig +top := $(CURDIR) +src := src +srck := $(top)/util/kconfig obj ?= build override obj := $(subst $(top)/,,$(abspath $(obj))) -export obj -export objutil ?= $(obj)/util -export objk := $(objutil)/kconfig +objutil ?= $(obj)/util +objk := $(objutil)/kconfig absobj := $(abspath $(obj)) +COREBOOT_EXPORTS := COREBOOT_EXPORTS +COREBOOT_EXPORTS += top src srck obj objutil objk -export KCONFIG_AUTOHEADER := $(obj)/config.h -export KCONFIG_AUTOCONFIG := $(obj)/auto.conf -export KCONFIG_DEPENDENCIES := $(obj)/auto.conf.cmd -export KCONFIG_SPLITCONFIG := $(obj)/config -export KCONFIG_TRISTATE := $(obj)/tristate.conf -export KCONFIG_NEGATIVES := 1 -export KCONFIG_STRICT := 1 +DOTCONFIG ?= $(top)/.config +KCONFIG_CONFIG = $(DOTCONFIG) +KCONFIG_AUTOHEADER := $(obj)/config.h +KCONFIG_AUTOCONFIG := $(obj)/auto.conf +KCONFIG_DEPENDENCIES := $(obj)/auto.conf.cmd +KCONFIG_SPLITCONFIG := $(obj)/config +KCONFIG_TRISTATE := $(obj)/tristate.conf +KCONFIG_NEGATIVES := 1 +KCONFIG_STRICT := 1 + +COREBOOT_EXPORTS += KCONFIG_CONFIG KCONFIG_AUTOHEADER KCONFIG_AUTOCONFIG +COREBOOT_EXPORTS += KCONFIG_DEPENDENCIES KCONFIG_SPLITCONFIG KCONFIG_TRISTATE +COREBOOT_EXPORTS += KCONFIG_NEGATIVES KCONFIG_STRICT # directory containing the toplevel Makefile.inc TOPLEVEL := . @@ -55,9 +62,6 @@ TOPLEVEL := . CONFIG_SHELL := sh KBUILD_DEFCONFIG := configs/defconfig UNAME_RELEASE := $(shell uname -r) -DOTCONFIG ?= $(top)/.config -KCONFIG_CONFIG = $(DOTCONFIG) -export KCONFIG_CONFIG HAVE_DOTCONFIG := $(wildcard $(DOTCONFIG)) MAKEFLAGS += -rR --no-print-directory @@ -82,6 +86,8 @@ PREPROCESS_ONLY := -E -P -x assembler-with-cpp -undef -I . DOXYGEN := doxygen DOXYGEN_OUTPUT_DIR := doxygen +export $(COREBOOT_EXPORTS) + all: real-all help_coreboot help:: -- cgit v1.2.3