From e77d6dc85249e5556877d36511e2f361592b3148 Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Tue, 8 Jan 2019 11:37:18 +0100 Subject: vendorcode/intel/fsp1_0/broadwell_de: Use FSP from 3rdparty/fsp Default to FSP binary and headers shiped in 3rdparty/fsp. * Drop headers and code from vendorcode/intel/fsp1_0/broadwell_de * Select HAVE_FSP_BIN to build test the platform * Fetch FSP repo as submodule * Make FSP_HEADER_PATH known from FSP2.0 useable on FSP1.0 * Introduce FSP_SRC_PATH for FSP source file * Add sane defaults for FSP_FILE Tested on wedge100s. Change-Id: I46f201218d19cf34c43a04f57458f474d8c3340d Signed-off-by: Patrick Rudolph Reviewed-on: https://review.coreboot.org/c/30742 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber Reviewed-by: Jay Talbott --- src/drivers/intel/fsp1_0/Kconfig | 10 ++++++++++ src/drivers/intel/fsp1_0/Makefile.inc | 8 ++++++++ 2 files changed, 18 insertions(+) (limited to 'src/drivers/intel/fsp1_0') diff --git a/src/drivers/intel/fsp1_0/Kconfig b/src/drivers/intel/fsp1_0/Kconfig index b26976aee7..b2338aa123 100644 --- a/src/drivers/intel/fsp1_0/Kconfig +++ b/src/drivers/intel/fsp1_0/Kconfig @@ -45,6 +45,16 @@ config FSP_1_0_DEBUG_LEVEL 2: NORMAL 3: MAXIMUM +config FSP_HEADER_PATH + string "Location of FSP headers" + help + The path to headers files that are released with the FSP binary. + +config FSP_SRC_PATH + string "Additional FSP source file" + help + Additional source files that are released with the FSP binary. + if HAVE_FSP_BIN config FSP_FILE diff --git a/src/drivers/intel/fsp1_0/Makefile.inc b/src/drivers/intel/fsp1_0/Makefile.inc index 67741a927a..604b9bc0a7 100644 --- a/src/drivers/intel/fsp1_0/Makefile.inc +++ b/src/drivers/intel/fsp1_0/Makefile.inc @@ -47,4 +47,12 @@ mrc.cache-type := mrc_cache endif endif +ifneq ($(call strip_quotes,$(CONFIG_FSP_SRC_PATH)),) +ramstage-y += $(call strip_quotes,$(CONFIG_FSP_SRC_PATH)) +endif + +ifneq ($(call strip_quotes,$(CONFIG_FSP_HEADER_PATH)),) +CPPFLAGS_common += -I$(CONFIG_FSP_HEADER_PATH) +endif + endif -- cgit v1.2.3