summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaul E Rangel <rrangel@chromium.org>2021-05-04 15:34:49 -0600
committerFelix Held <felix-coreboot@felixheld.de>2021-05-07 18:43:41 +0000
commit36d50f8050d18631ef28a9af6760a2fa5d23de63 (patch)
treef96221d7e9d0064972d199a16a2e2ca050b408a7
parent6e9f21f815be0045b61a91b687006ba8c443e564 (diff)
soc/amd/common: Add Kconfig/Makefile support for common/fsp/*
This will allow us to have subdirectories in common/fsp. BUG=b:184766519 TEST=Build guybrush Signed-off-by: Raul E Rangel <rrangel@chromium.org> Change-Id: Ib3497791e1963867c8fe06a42c111e5d0503ade1 Reviewed-on: https://review.coreboot.org/c/coreboot/+/52910 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
-rw-r--r--src/soc/amd/common/Kconfig.common6
-rw-r--r--src/soc/amd/common/fsp/Makefile.inc3
2 files changed, 9 insertions, 0 deletions
diff --git a/src/soc/amd/common/Kconfig.common b/src/soc/amd/common/Kconfig.common
index fa1d14acd7..805088159c 100644
--- a/src/soc/amd/common/Kconfig.common
+++ b/src/soc/amd/common/Kconfig.common
@@ -10,4 +10,10 @@ config SOC_AMD_PI
source "src/soc/amd/common/block/*/Kconfig"
+if PLATFORM_USES_FSP2_0
+
+source "src/soc/amd/common/fsp/*/Kconfig"
+
+endif # PLATFORM_USES_FSP2_0
+
endif # SOC_AMD_COMMON
diff --git a/src/soc/amd/common/fsp/Makefile.inc b/src/soc/amd/common/fsp/Makefile.inc
index 3ba6ea5b4a..ff25eba387 100644
--- a/src/soc/amd/common/fsp/Makefile.inc
+++ b/src/soc/amd/common/fsp/Makefile.inc
@@ -2,4 +2,7 @@ ifeq ($(CONFIG_PLATFORM_USES_FSP2_0),y)
romstage-y += fsp_reset.c
ramstage-y += fsp_reset.c
ramstage-$(CONFIG_HAVE_ACPI_TABLES) += fsp-acpi.c
+
+subdirs-y += ./*
+
endif # CONFIG_PLATFORM_USES_FSP2_0