]> xenbits.xensource.com Git - people/aperard/ovmf.git/commitdiff
UefiPayloadPkg: Add LOCKBOX_SUPPORT in UPL and set it as FALSE in default
authorZhou Jianfeng <jianfeng.zhou@intel.com>
Sun, 22 Sep 2024 01:27:08 +0000 (09:27 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 23 Sep 2024 02:40:32 +0000 (02:40 +0000)
S3 performance table is saved to LockBox. Without LockBox, S3 performance
data will lost.

Add LOCKBOX_SUPPORT to optionally select LockBox libary instance,
default value is FALSE.

Signed-off-by: Zhou Jianfeng <jianfeng.zhou@intel.com>
UefiPayloadPkg/UefiPayloadPkg.dsc

index 3c0f2d699b0b460c55bc05f11aac43037bbde206..fe7987f8f0106e90f61053c3f09fb1e674f3b4bc 100644 (file)
@@ -42,6 +42,7 @@
   DEFINE BOOTSPLASH_IMAGE             = FALSE\r
   DEFINE NVME_ENABLE                  = TRUE\r
   DEFINE CAPSULE_SUPPORT              = FALSE\r
+  DEFINE LOCKBOX_SUPPORT              = FALSE\r
 \r
   #\r
   # Crypto Support\r
 !endif\r
 \r
   DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf\r
+!if $(LOCKBOX_SUPPORT) == TRUE\r
+  LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.inf\r
+!else\r
   LockBoxLib|MdeModulePkg/Library/LockBoxNullLib/LockBoxNullLib.inf\r
+!endif\r
   FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf\r
   AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf\r
 !if $(VARIABLE_SUPPORT) == "EMU"\r