Skip to content

Commit

Permalink
DasharoPayloadPkg: Add option to use UEFI variable backed PPI
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
miczyg1 committed Dec 16, 2024
1 parent 86dca9e commit 0976fc5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions DasharoPayloadPkg/DasharoPayloadPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0976fc5

Please sign in to comment.