1## SPDX-License-Identifier: GPL-2.0-only 2 3config SMMSTORE 4 bool "Support for flash based, SMM mediated data store" 5 depends on BOOT_DEVICE_SUPPORTS_WRITES && HAVE_SMI_HANDLER 6 default y if PAYLOAD_EDK2 7 select SPI_FLASH_SMM if BOOT_DEVICE_SPI_FLASH_RW_NOMMAP 8 9config SMMSTORE_V2 10 bool "Use version 2 of SMMSTORE API" 11 depends on SMMSTORE 12 default y if PAYLOAD_EDK2 13 default n 14 help 15 Version 2 of SMMSTORE allows secure communication with SMM and 16 makes no assumptions on the structure of the data stored within. 17 It splits the store into chunks to allows fault tolerant writes. 18 19 By using version 2 you cannot make use of software that expects 20 a version 1 SMMSTORE. 21 22if SMMSTORE 23 24config SMMSTORE_SIZE 25 hex "size of the SMMSTORE FMAP region" 26 default 0x40000 27 help 28 Sets the size of the default SMMSTORE FMAP region. 29 If using an UEFI payload, note that UEFI specifies at least 64K. 30 The current implementation of SMMSTORE is append only, so until 31 garbage collection is implemented it is better to set this to 32 a rather large value. 33 34endif 35