diff options
author | Martin Roth <gaumless@gmail.com> | 2023-08-24 18:15:59 -0600 |
---|---|---|
committer | Martin L Roth <gaumless@gmail.com> | 2023-08-26 21:13:20 +0000 |
commit | 81da643c135b6e8cff6a7181f8f7914105977ba0 (patch) | |
tree | eafded7ad012238d40dc8ee0cbb29dd5768d3dc2 /src/vendorcode/amd | |
parent | c12b290c5da73826e15a13c6a20a6b6c1c96f434 (diff) |
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>
Diffstat (limited to 'src/vendorcode/amd')
-rw-r--r-- | src/vendorcode/amd/Makefile.inc | 3 | ||||
-rw-r--r-- | src/vendorcode/amd/pi/Makefile.inc | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/vendorcode/amd/Makefile.inc b/src/vendorcode/amd/Makefile.inc index ddeb2a4959..321013474e 100644 --- a/src/vendorcode/amd/Makefile.inc +++ b/src/vendorcode/amd/Makefile.inc @@ -1 +1,2 @@ -subdirs-y += pi +subdirs-$(CONFIG_SOC_AMD_STONEYRIDGE) += pi +subdirs-$(CONFIG_CPU_AMD_PI_00730F01) += pi 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 |