From 0976fc5cc0c35174ebcf09d39a9dba5878243349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20=C5=BBygowski?= Date: Thu, 12 Dec 2024 15:49:06 +0100 Subject: [PATCH] DasharoPayloadPkg: Add option to use UEFI variable backed PPI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Certain platform like VP2410 can not keep RAM contents between reboots which results in TPM PPI to not work. Add an option to let platform use UEFI variable backed TPM PPI. It will let firmware menu PPI requests to be processed properly at the cost of not working OS runtime PPI requests which did not work anyway. Signed-off-by: Michał Żygowski --- DasharoPayloadPkg/DasharoPayloadPkg.dsc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/DasharoPayloadPkg/DasharoPayloadPkg.dsc b/DasharoPayloadPkg/DasharoPayloadPkg.dsc index 1a816adbc0..26505a4a5b 100644 --- a/DasharoPayloadPkg/DasharoPayloadPkg.dsc +++ b/DasharoPayloadPkg/DasharoPayloadPkg.dsc @@ -111,6 +111,7 @@ DEFINE APU_CONFIG_ENABLE = FALSE DEFINE USE_PLATFORM_GOP = FALSE DEFINE USE_LAPTOP_LID_LIB = FALSE + DEFINE USE_UEFIVAR_BACKED_TPM_PPI = FALSE # # Network definition @@ -326,8 +327,13 @@ !if $(TPM_ENABLE) == TRUE Tpm12CommandLib|SecurityPkg/Library/Tpm12CommandLib/Tpm12CommandLib.inf Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf + +!if $(USE_UEFIVAR_BACKED_TPM_PPI) == TRUE + Tcg2PhysicalPresenceLib|SecurityPkg/Library/DxeTcg2PhysicalPresenceLib/DxeTcg2PhysicalPresenceLib.inf +!else Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibQemu/DxeTcg2PhysicalPresenceLib.inf Tcg2PhysicalPresencePlatformLib|DasharoPayloadPkg/Library/Tcg2PhysicalPresencePlatformLibUefipayload/DxeTcg2PhysicalPresencePlatformLib.inf +!endif Tcg2PpVendorLib|SecurityPkg/Library/Tcg2PpVendorLibNull/Tcg2PpVendorLibNull.inf TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf !else