From ae4f0ceb88b5f54606cbed7845d59eb37b348906 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Wed, 14 Jul 2021 18:42:09 +0200 Subject: [PATCH] soc/amd/common/block/cpu/mca: make building the BERT support conditional Only when ACPI_BERT is selected the BERT functionality needs to be included in the build. Change-Id: I8a21562f4535fb0ea3c53f2ea8df50f66cc6a64c Signed-off-by: Felix Held Reviewed-on: https://review.coreboot.org/c/coreboot/+/56314 Reviewed-by: Martin Roth Tested-by: build bot (Jenkins) --- src/soc/amd/common/block/cpu/mca/Makefile.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/soc/amd/common/block/cpu/mca/Makefile.inc b/src/soc/amd/common/block/cpu/mca/Makefile.inc index 02328057de..fd9e573e05 100644 --- a/src/soc/amd/common/block/cpu/mca/Makefile.inc +++ b/src/soc/amd/common/block/cpu/mca/Makefile.inc @@ -1,14 +1,14 @@ ifeq ($(CONFIG_SOC_AMD_COMMON_BLOCK_MCA_COMMON),y) ramstage-y += mca_common.c -ramstage-y += mca_common_bert.c +ramstage-$(CONFIG_ACPI_BERT) += mca_common_bert.c endif # CONFIG_SOC_AMD_COMMON_BLOCK_MCA_COMMON ifeq ($(CONFIG_SOC_AMD_COMMON_BLOCK_MCA),y) -ramstage-y += mca_bert.c +ramstage-$(CONFIG_ACPI_BERT) += mca_bert.c ramstage-y += mca.c endif # CONFIG_SOC_AMD_COMMON_BLOCK_MCA ifeq ($(CONFIG_SOC_AMD_COMMON_BLOCK_MCAX),y) -ramstage-y += mcax_bert.c +ramstage-$(CONFIG_ACPI_BERT) += mcax_bert.c ramstage-y += mcax.c endif # CONFIG_SOC_AMD_COMMON_BLOCK_MCAX