From 4cf6605066a54bb74c3f68db7730115a23eef6e5 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Wed, 13 Oct 2021 22:14:23 +0200 Subject: [PATCH] soc/amd/common/block/lpc: simplify eSPI part of Makefile Since espi_util.c is also built in the case of verstage on PSP, we can just add it to all stages. Signed-off-by: Felix Held Change-Id: I65e07c356aac73c5de2d9ce5582434872a223c19 Reviewed-on: https://review.coreboot.org/c/coreboot/+/58312 Tested-by: build bot (Jenkins) Reviewed-by: Raul Rangel --- src/soc/amd/common/block/lpc/Makefile.inc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/soc/amd/common/block/lpc/Makefile.inc b/src/soc/amd/common/block/lpc/Makefile.inc index 7900b10d13..b1fed7eb01 100644 --- a/src/soc/amd/common/block/lpc/Makefile.inc +++ b/src/soc/amd/common/block/lpc/Makefile.inc @@ -21,11 +21,4 @@ ramstage-y += spi_dma.c smm-y += spi_dma.c endif # CONFIG_SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA -ifeq ($(CONFIG_SOC_AMD_COMMON_BLOCK_USE_ESPI),y) - -bootblock-y += espi_util.c -romstage-y += espi_util.c -ramstage-y += espi_util.c -verstage-y += espi_util.c - -endif # CONFIG_SOC_AMD_COMMON_BLOCK_USE_ESPI +all-$(CONFIG_SOC_AMD_COMMON_BLOCK_USE_ESPI) += espi_util.c