summaryrefslogtreecommitdiffstats
path: root/UefiPayloadPkg
diff options
context:
space:
mode:
authorZhou Jianfeng <jianfeng.zhou@intel.com>2024-09-22 09:27:08 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-09-23 02:40:32 +0000
commit0354e89fc94b85148eded1b1ad7d1f626afdae04 (patch)
tree21a8c2469ced3e315b93543594fd00af55add681 /UefiPayloadPkg
parent14bfcc402163d5e4fdefb1258740a24b6ee7261d (diff)
downloadedk2-0354e89fc94b85148eded1b1ad7d1f626afdae04.tar.gz
UefiPayloadPkg: Add LOCKBOX_SUPPORT in UPL and set it as FALSE in default
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>
Diffstat (limited to 'UefiPayloadPkg')
-rw-r--r--UefiPayloadPkg/UefiPayloadPkg.dsc5
1 files changed, 5 insertions, 0 deletions
diff --git a/UefiPayloadPkg/UefiPayloadPkg.dsc b/UefiPayloadPkg/UefiPayloadPkg.dsc
index 3c0f2d699b..fe7987f8f0 100644
--- a/UefiPayloadPkg/UefiPayloadPkg.dsc
+++ b/UefiPayloadPkg/UefiPayloadPkg.dsc
@@ -42,6 +42,7 @@
DEFINE BOOTSPLASH_IMAGE = FALSE
DEFINE NVME_ENABLE = TRUE
DEFINE CAPSULE_SUPPORT = FALSE
+ DEFINE LOCKBOX_SUPPORT = FALSE
#
# Crypto Support
@@ -298,7 +299,11 @@
!endif
DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
+!if $(LOCKBOX_SUPPORT) == TRUE
+ LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.inf
+!else
LockBoxLib|MdeModulePkg/Library/LockBoxNullLib/LockBoxNullLib.inf
+!endif
FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
!if $(VARIABLE_SUPPORT) == "EMU"