summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2020-12-05 00:35:24 +0100
committerFelix Held <felix-coreboot@felixheld.de>2020-12-06 18:59:14 +0000
commit0a93f7a7e99bf0872e019adeed08bf7b620a8985 (patch)
tree6804a6c6e5a03c434ab169b370949519e90939c8
parent91562ae713362679e00e29987a2fdbf702a75423 (diff)
soc/amd/common/block/cpu: move Makefile guards into subfolders
The next patch will add a tsc subfolder that might end up containing code that is guarded with different Kconfig options, so move the guards into the Makefiles in the subfolders instead of guarding the inclusion of the Makefiles in the subdirectories with the corresponding Kconfig option. Change-Id: Iafc867eb9adcb23e9a4878cc381684db6f9692d5 Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48312 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
-rw-r--r--src/soc/amd/common/block/cpu/Makefile.inc3
-rw-r--r--src/soc/amd/common/block/cpu/car/Makefile.inc4
-rw-r--r--src/soc/amd/common/block/cpu/noncar/Makefile.inc4
3 files changed, 9 insertions, 2 deletions
diff --git a/src/soc/amd/common/block/cpu/Makefile.inc b/src/soc/amd/common/block/cpu/Makefile.inc
index 6298f3b746..4c0266396c 100644
--- a/src/soc/amd/common/block/cpu/Makefile.inc
+++ b/src/soc/amd/common/block/cpu/Makefile.inc
@@ -1,2 +1 @@
-subdirs-$(CONFIG_SOC_AMD_COMMON_BLOCK_CAR) += car
-subdirs-$(CONFIG_SOC_AMD_COMMON_BLOCK_NONCAR) += noncar
+subdirs-y += ./*
diff --git a/src/soc/amd/common/block/cpu/car/Makefile.inc b/src/soc/amd/common/block/cpu/car/Makefile.inc
index 639914040f..130b34b683 100644
--- a/src/soc/amd/common/block/cpu/car/Makefile.inc
+++ b/src/soc/amd/common/block/cpu/car/Makefile.inc
@@ -1,3 +1,5 @@
+ifeq ($(CONFIG_SOC_AMD_COMMON_BLOCK_CAR),y)
+
bootblock-y += cache_as_ram.S
bootblock-y += ap_exit_car.S
bootblock-y += exit_car.S
@@ -6,3 +8,5 @@ postcar-y += exit_car.S
romstage-y += ap_exit_car.S
romstage-y += exit_car.S
+
+endif # CONFIG_SOC_AMD_COMMON_BLOCK_CAR
diff --git a/src/soc/amd/common/block/cpu/noncar/Makefile.inc b/src/soc/amd/common/block/cpu/noncar/Makefile.inc
index d6b8b52711..7a3be34782 100644
--- a/src/soc/amd/common/block/cpu/noncar/Makefile.inc
+++ b/src/soc/amd/common/block/cpu/noncar/Makefile.inc
@@ -1 +1,5 @@
+ifeq ($(CONFIG_SOC_AMD_COMMON_BLOCK_NONCAR),y)
+
bootblock-y += pre_c.S
+
+endif # CONFIG_SOC_AMD_COMMON_BLOCK_NONCAR