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>
This commit is contained in:
Raul E Rangel 2021-05-04 15:34:49 -06:00 committed by Felix Held
parent 6e9f21f815
commit 36d50f8050
2 changed files with 9 additions and 0 deletions

View File

@ -10,4 +10,10 @@ config SOC_AMD_PI
source "src/soc/amd/common/block/*/Kconfig" 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 endif # SOC_AMD_COMMON

View File

@ -2,4 +2,7 @@ ifeq ($(CONFIG_PLATFORM_USES_FSP2_0),y)
romstage-y += fsp_reset.c romstage-y += fsp_reset.c
ramstage-y += fsp_reset.c ramstage-y += fsp_reset.c
ramstage-$(CONFIG_HAVE_ACPI_TABLES) += fsp-acpi.c ramstage-$(CONFIG_HAVE_ACPI_TABLES) += fsp-acpi.c
subdirs-y += ./*
endif # CONFIG_PLATFORM_USES_FSP2_0 endif # CONFIG_PLATFORM_USES_FSP2_0