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 <gaumless@gmail.com>
Change-Id: If600c78c2ba74dd03cf493586dae037b96b7d623
Reviewed-on: https://review.coreboot.org/c/coreboot/+/77420
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-by: Frans Hendriks <fhendriks@eltan.com>
Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
This commit is contained in:
Martin Roth 2023-08-24 18:15:59 -06:00 committed by Martin L Roth
parent c12b290c5d
commit 81da643c13
2 changed files with 6 additions and 2 deletions

View File

@ -1 +1,2 @@
subdirs-y += pi
subdirs-$(CONFIG_SOC_AMD_STONEYRIDGE) += pi
subdirs-$(CONFIG_CPU_AMD_PI_00730F01) += pi

View File

@ -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