Krystian Hebel has uploaded this change for review. ( https://review.coreboot.org/28385
Change subject: intel/fsp2_0: automatically split FSP into fsp{t,m,s}.bin ......................................................................
intel/fsp2_0: automatically split FSP into fsp{t,m,s}.bin
Automatically splited binary is used if all of the following are true: - CONFIG_PLATFORM_USES_FSP2_0 is set - supported processor family is used - CONFIG_FSP_x_FILE is not set, so existing platform configs won't break. Tested on custom board with Intel i7-6500U CPU.
Change-Id: Ic7b7ab6197e72ef06f90d4fc41d937cbb570bbbc Signed-off-by: Krystian Hebel krystian.hebel@3mdeb.com --- M src/drivers/intel/fsp2_0/Makefile.inc 1 file changed, 22 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/85/28385/1
diff --git a/src/drivers/intel/fsp2_0/Makefile.inc b/src/drivers/intel/fsp2_0/Makefile.inc index d5709ad..fc75ccc 100644 --- a/src/drivers/intel/fsp2_0/Makefile.inc +++ b/src/drivers/intel/fsp2_0/Makefile.inc @@ -15,6 +15,28 @@
ifeq ($(CONFIG_PLATFORM_USES_FSP2_0),y)
+FAMILIES := APOLLOLAKE COFFEELAKE DENVERTON_NS KABYLAKE SKYLAKE +FAMILY := $(subst CONFIG_SOC_INTEL_,,$(strip \ + $(foreach F, $(FAMILIES), $(filter %$(F),$(.VARIABLES))))) + +ifneq ($(FAMILY),) +$(info $(shell python ./util/fsptool/SplitFsp.py $(FAMILY))) +endif + +ifeq ($(CONFIG_FSP_T_FILE),"") +undefine CONFIG_FSP_T_FILE +endif +ifeq ($(CONFIG_FSP_M_FILE),"") +undefine CONFIG_FSP_M_FILE +endif +ifeq ($(CONFIG_FSP_S_FILE),"") +undefine CONFIG_FSP_S_FILE +endif + +CONFIG_FSP_T_FILE ?= $(obj)/fspt.bin +CONFIG_FSP_M_FILE ?= $(obj)/fspm.bin +CONFIG_FSP_S_FILE ?= $(obj)/fsps.bin + romstage-y += debug.c romstage-y += hand_off_block.c romstage-$(CONFIG_DISPLAY_FSP_HEADER) += header_display.c