aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/intel
diff options
context:
space:
mode:
authorPatrick Rudolph <patrick.rudolph@9elements.com>2019-01-08 11:37:18 +0100
committerPatrick Rudolph <siro@das-labor.org>2019-01-15 07:45:41 +0000
commite77d6dc85249e5556877d36511e2f361592b3148 (patch)
tree605e3745a8615c56a92e37c738c83c0c8ebb7266 /src/drivers/intel
parent3ef017c4d4975aa055f8be3dc8a5cf37250f88e2 (diff)
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 <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/30742 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Jay Talbott <JayTalbott@sysproconsulting.com>
Diffstat (limited to 'src/drivers/intel')
-rw-r--r--src/drivers/intel/fsp1_0/Kconfig10
-rw-r--r--src/drivers/intel/fsp1_0/Makefile.inc8
2 files changed, 18 insertions, 0 deletions
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