soc/amd/common/block/lpc/Makefile: simplify handling spi_dma.c

Use the verstage_x86 class for the spi_dma.c target instead of using the
verstage class and guarding it with !VBOOT_STARTS_BEFORE_BOOTBLOCK.

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I9b8cafd1ef17df8c485f6594bc0928cea88e436b
Reviewed-on: https://review.coreboot.org/c/coreboot/+/58544
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
This commit is contained in:
Felix Held 2021-10-22 04:07:17 +02:00 committed by Felix Held
parent f77d78dcfb
commit 4690b03704
1 changed files with 1 additions and 3 deletions

View File

@ -13,9 +13,7 @@ endif # CONFIG_SOC_AMD_COMMON_BLOCK_LPC
ifeq ($(CONFIG_SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA),y) ifeq ($(CONFIG_SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA),y)
bootblock-y += spi_dma.c bootblock-y += spi_dma.c
ifneq ($(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK),y) verstage_x86-y += spi_dma.c
verstage-y += spi_dma.c
endif
romstage-y += spi_dma.c romstage-y += spi_dma.c
ramstage-y += spi_dma.c ramstage-y += spi_dma.c
smm-y += spi_dma.c smm-y += spi_dma.c