summaryrefslogtreecommitdiffstats
path: root/src/Kconfig
diff options
context:
space:
mode:
authorPatrick Rudolph <patrick.rudolph@9elements.com>2022-03-03 10:16:35 +0100
committerLean Sheng Tan <sheng.tan@9elements.com>2023-04-03 21:14:53 +0000
commit4d66ab5e34b709e9033cc677f5e3a7de788727ee (patch)
treefc84440ded0b019c8e1b6a60cb2fc09ed2cef3ee /src/Kconfig
parent1ab8ad66d450094a1e429a004fc10e1d4b32bbfb (diff)
downloadcoreboot-4d66ab5e34b709e9033cc677f5e3a7de788727ee.tar.gz
coreboot-4d66ab5e34b709e9033cc677f5e3a7de788727ee.tar.bz2
coreboot-4d66ab5e34b709e9033cc677f5e3a7de788727ee.zip
option: Allow to use the EFI variable driver as option backend
Use the introduced EFI variable store driver on top of the SMMSTORE region in SPI flash to read/write options. Change-Id: I520eca96bcd573f825ed35a29bf8f750e313a02d Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/62562 Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/Kconfig')
-rw-r--r--src/Kconfig11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Kconfig b/src/Kconfig
index 16f788154f53..e35df43c9e33 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -142,6 +142,8 @@ choice
prompt "Option backend to use"
default USE_MAINBOARD_SPECIFIC_OPTION_BACKEND if HAVE_MAINBOARD_SPECIFIC_OPTION_BACKEND
default USE_OPTION_TABLE if NVRAMCUI_SECONDARY_PAYLOAD
+ default USE_UEFI_VARIABLE_STORE if DRIVERS_EFI_VARIABLE_STORE && \
+ PAYLOAD_EDK2 && SMMSTORE_V2
config OPTION_BACKEND_NONE
bool "None"
@@ -153,6 +155,15 @@ config USE_OPTION_TABLE
Enable this option if coreboot shall read options from the "CMOS"
NVRAM instead of using hard-coded values.
+config USE_UEFI_VARIABLE_STORE
+ bool "Use UEFI variable-store in SPI flash as option backend"
+ depends on DRIVERS_EFI_VARIABLE_STORE
+ depends on SMMSTORE_V2
+ help
+ Enable this option if coreboot shall read/write options from the
+ SMMSTORE region within the SPI flash. The region must be formatted
+ by the payload first before it can be used.
+
config USE_MAINBOARD_SPECIFIC_OPTION_BACKEND
bool "Use mainboard-specific option backend"
depends on HAVE_MAINBOARD_SPECIFIC_OPTION_BACKEND