aboutsummaryrefslogtreecommitdiff
path: root/src/soc/amd/common/block/acpimmio
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/amd/common/block/acpimmio')
-rw-r--r--src/soc/amd/common/block/acpimmio/Makefile.inc28
1 files changed, 16 insertions, 12 deletions
diff --git a/src/soc/amd/common/block/acpimmio/Makefile.inc b/src/soc/amd/common/block/acpimmio/Makefile.inc
index 553d9e23ca..6b3e423a76 100644
--- a/src/soc/amd/common/block/acpimmio/Makefile.inc
+++ b/src/soc/amd/common/block/acpimmio/Makefile.inc
@@ -1,13 +1,17 @@
-bootblock-$(CONFIG_SOC_AMD_COMMON_BLOCK_ACPIMMIO) += mmio_util.c
-verstage-$(CONFIG_SOC_AMD_COMMON_BLOCK_ACPIMMIO) += mmio_util.c
-romstage-$(CONFIG_SOC_AMD_COMMON_BLOCK_ACPIMMIO) += mmio_util.c
-postcar-$(CONFIG_SOC_AMD_COMMON_BLOCK_ACPIMMIO) += mmio_util.c
-ramstage-$(CONFIG_SOC_AMD_COMMON_BLOCK_ACPIMMIO) += mmio_util.c
-smm-$(CONFIG_SOC_AMD_COMMON_BLOCK_ACPIMMIO) += mmio_util.c
+ifeq ($(CONFIG_SOC_AMD_COMMON_BLOCK_ACPIMMIO),y)
-bootblock-$(CONFIG_SOC_AMD_COMMON_BLOCK_ACPIMMIO) += biosram.c
-verstage_x86-$(CONFIG_SOC_AMD_COMMON_BLOCK_ACPIMMIO) += biosram.c
-romstage-$(CONFIG_SOC_AMD_COMMON_BLOCK_ACPIMMIO) += biosram.c
-postcar-$(CONFIG_SOC_AMD_COMMON_BLOCK_ACPIMMIO) += biosram.c
-ramstage-$(CONFIG_SOC_AMD_COMMON_BLOCK_ACPIMMIO) += biosram.c
-smm-$(CONFIG_SOC_AMD_COMMON_BLOCK_ACPIMMIO) += biosram.c
+bootblock-y += mmio_util.c
+verstage-y += mmio_util.c
+romstage-y += mmio_util.c
+postcar-y += mmio_util.c
+ramstage-y += mmio_util.c
+smm-y += mmio_util.c
+
+bootblock-y += biosram.c
+verstage_x86-y += biosram.c
+romstage-y += biosram.c
+postcar-y += biosram.c
+ramstage-y += biosram.c
+smm-y += biosram.c
+
+endif # CONFIG_SOC_AMD_COMMON_BLOCK_ACPIMMIO