aboutsummaryrefslogtreecommitdiff
path: root/src/soc/amd/common/block/gpio_banks
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/amd/common/block/gpio_banks')
-rw-r--r--src/soc/amd/common/block/gpio_banks/Makefile.inc16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/soc/amd/common/block/gpio_banks/Makefile.inc b/src/soc/amd/common/block/gpio_banks/Makefile.inc
index f1555b12b8..5b738bd371 100644
--- a/src/soc/amd/common/block/gpio_banks/Makefile.inc
+++ b/src/soc/amd/common/block/gpio_banks/Makefile.inc
@@ -1,6 +1,10 @@
-bootblock-$(CONFIG_SOC_AMD_COMMON_BLOCK_BANKED_GPIOS) += gpio.c
-verstage-$(CONFIG_SOC_AMD_COMMON_BLOCK_BANKED_GPIOS) += gpio.c
-romstage-$(CONFIG_SOC_AMD_COMMON_BLOCK_BANKED_GPIOS) += gpio.c
-postcar-$(CONFIG_SOC_AMD_COMMON_BLOCK_BANKED_GPIOS) += gpio.c
-ramstage-$(CONFIG_SOC_AMD_COMMON_BLOCK_BANKED_GPIOS) += gpio.c
-smm-$(CONFIG_SOC_AMD_COMMON_BLOCK_BANKED_GPIOS) += gpio.c
+ifeq ($(CONFIG_SOC_AMD_COMMON_BLOCK_BANKED_GPIOS),y)
+
+bootblock-y += gpio.c
+verstage-y += gpio.c
+romstage-y += gpio.c
+postcar-y += gpio.c
+ramstage-y += gpio.c
+smm-y += gpio.c
+
+endif # CONFIG_SOC_AMD_COMMON_BLOCK_BANKED_GPIOS