From 81da643c135b6e8cff6a7181f8f7914105977ba0 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Thu, 24 Aug 2023 18:15:59 -0600 Subject: vc/amd: Only pull in Makefiles & dirs that are needed This keeps the vc/amd/pi & pi/00670F00 Makefiles from getting pulled into the build when they aren't needed. Signed-off-by: Martin Roth Change-Id: If600c78c2ba74dd03cf493586dae037b96b7d623 Reviewed-on: https://review.coreboot.org/c/coreboot/+/77420 Tested-by: build bot (Jenkins) Reviewed-by: Elyes Haouas Reviewed-by: Frans Hendriks Reviewed-by: Felix Singer --- src/vendorcode/amd/pi/Makefile.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/vendorcode/amd/pi/Makefile.inc') diff --git a/src/vendorcode/amd/pi/Makefile.inc b/src/vendorcode/amd/pi/Makefile.inc index b00e38b2e8..a5768ea64c 100644 --- a/src/vendorcode/amd/pi/Makefile.inc +++ b/src/vendorcode/amd/pi/Makefile.inc @@ -28,9 +28,10 @@ # #***************************************************************************** +ifeq ($(CONFIG_SOC_AMD_STONEYRIDGE),y) + subdirs-y += 00670F00 -ifeq ($(CONFIG_SOC_AMD_STONEYRIDGE),y) # AGESA V5 Files AGESA_ROOT = $(top)/$(call strip_quotes,$(CONFIG_AGESA_BINARY_PI_VENDORCODE_PATH)) @@ -60,6 +61,8 @@ endif ifeq ($(CONFIG_CPU_AMD_PI_00730F01),y) # AGESA V5 Files +subdirs-y += 00730F01 + AGESA_ROOT = $(call strip_quotes,$(CONFIG_AGESA_BINARY_PI_VENDORCODE_PATH)) AGESA_INC = -I$(obj) -I$(src)/vendorcode/amd/include -- cgit v1.2.3