diff options
author | Sergii Dmytruk <sergii.dmytruk@3mdeb.com> | 2024-08-01 16:43:19 +0300 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2024-08-08 17:50:25 +0000 |
commit | 490e7c3f92eaed4455ff9b2e37255bcf52e0e831 (patch) | |
tree | c94512912fcc10f6c6fc5137a30d8fae58f99209 | |
parent | ab7410a4d00c3c236b14c7ecb23822fc2c7939d8 (diff) |
payloads/edk2: set VARIABLE_SUPPORT=SMMSTORE on CONFIG_SMMSTORE_V2
Official EDK2 repository has VARIABLE_SUPPORT defaulting to EMU in
UefiPayloadPkg, switch it to SMMSTORE if coreboot is built with
SMMSTOREv2.
This removes custom default of EDK2_CUSTOM_BUILD_PARAMS for
EDK2_REPO_MRCHROMEBOX which is unnecessary now.
Change-Id: Ic59f89c0f708f9b144bd35cd18870d0e1c65677d
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/83737
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-by: Maximilian Brune <maximilian.brune@9elements.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r-- | payloads/external/edk2/Kconfig | 2 | ||||
-rw-r--r-- | payloads/external/edk2/Makefile | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/payloads/external/edk2/Kconfig b/payloads/external/edk2/Kconfig index 57e38b94c1..0f88d36443 100644 --- a/payloads/external/edk2/Kconfig +++ b/payloads/external/edk2/Kconfig @@ -319,7 +319,7 @@ config EDK2_USE_LAPIC_TIMER config EDK2_CUSTOM_BUILD_PARAMS string "edk2 additional custom build parameters" - default "-D VARIABLE_SUPPORT=SMMSTORE" if EDK2_REPO_MRCHROMEBOX && SMMSTORE_V2 + default "" help edk2 has build options that are not modified by coreboot, and these can be found in `UefiPayloadPkg/UefiPayloadPkg.dsc`. Forks may also support diff --git a/payloads/external/edk2/Makefile b/payloads/external/edk2/Makefile index 3966b91da6..e1986239fc 100644 --- a/payloads/external/edk2/Makefile +++ b/payloads/external/edk2/Makefile @@ -69,8 +69,10 @@ endif ifneq ($(CONFIG_EDK2_SERIAL_SUPPORT),y) BUILD_STR += -D DISABLE_SERIAL_TERMINAL=TRUE endif +# VARIABLE_SUPPORT = EMU # MAX_VARIABLE_SIZE = 0x10000 ifeq ($(CONFIG_SMMSTORE_V2),y) +BUILD_STR += -D VARIABLE_SUPPORT=SMMSTORE BUILD_STR += --pcd gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize=0x8000 endif # PCIE_BASE_ADDRESS = 0 |