From 61f0a0882d0feb3c7bdee1967ccf163b5923c8ec Mon Sep 17 00:00:00 2001 From: Sean Rhodes Date: Mon, 3 Apr 2023 16:30:24 +0100 Subject: [PATCH] payloads/edk2: Set max variable size to 0x8000 for SMMSTORE SMMSTORE requires 0x8000, compared to the default value of 0x10000. Signed-off-by: Sean Rhodes Change-Id: I10d2a5a0c1d729d83e0b62bb9430863317b883cc Reviewed-on: https://review.coreboot.org/c/coreboot/+/74176 Tested-by: build bot (Jenkins) Reviewed-by: Matt DeVillier --- payloads/external/edk2/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/payloads/external/edk2/Makefile b/payloads/external/edk2/Makefile index e704093cdd..c8d9c9f599 100644 --- a/payloads/external/edk2/Makefile +++ b/payloads/external/edk2/Makefile @@ -71,6 +71,10 @@ endif ifeq ($(CONFIG_EDK2_FOLLOW_BGRT_SPEC),y) BUILD_STR += -D FOLLOW_BGRT_SPEC=TRUE endif +# MAX_VARIABLE_SIZE = 0x10000 +ifeq ($(CONFIG_SMMSTORE_V2),y) +BUILD_STR += --pcd gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize=0x8000 +endif # PCIE_BASE_ADDRESS = 0 ifneq ($(CONFIG_ECAM_MMCONF_LENGTH),) BUILD_STR += --pcd gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress=$(CONFIG_ECAM_MMCONF_BASE_ADDRESS)