From b94a84a7922c428d277c829873e674ec12b38d2c Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Sat, 29 Nov 2025 22:54:11 -0600 Subject: [PATCH] drivers/efi: Exclude verstage from EFI variable store files The EFI variable store driver (efivars.c) and option backend (option.c) require EDK2 headers which are x86-specific and not available in ARM verstage. Use 'all_x86-' instead of 'all-' to exclude verstage while keeping other x86 stages and SMM. TEST=build google/dewatt with CFR enabled Change-Id: I6d0955423cb55658725dfa3025b2118736f5e63b Signed-off-by: Matt DeVillier Reviewed-on: https://review.coreboot.org/c/coreboot/+/90296 Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) --- src/drivers/efi/Makefile.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/efi/Makefile.mk b/src/drivers/efi/Makefile.mk index 2c3cf9c3bf..060c0130f4 100644 --- a/src/drivers/efi/Makefile.mk +++ b/src/drivers/efi/Makefile.mk @@ -1,11 +1,11 @@ # SPDX-License-Identifier: GPL-2.0-only -all-$(CONFIG_DRIVERS_EFI_VARIABLE_STORE) += efivars.c +all_x86-$(CONFIG_DRIVERS_EFI_VARIABLE_STORE) += efivars.c smm-$(CONFIG_DRIVERS_EFI_VARIABLE_STORE) += efivars.c ramstage-$(CONFIG_DRIVERS_EFI_UPDATE_CAPSULES) += capsules.c -all-$(CONFIG_USE_UEFI_VARIABLE_STORE) += option.c +all_x86-$(CONFIG_USE_UEFI_VARIABLE_STORE) += option.c smm-$(CONFIG_USE_UEFI_VARIABLE_STORE) += option.c ramstage-$(CONFIG_DRIVERS_EFI_FW_INFO) += info.c