TianoCore EDK2 master
Loading...
Searching...
No Matches
OvmfTpmLibs.dsc.inc
1##
2# SPDX-License-Identifier: BSD-2-Clause-Patent
3##
4
5[LibraryClasses]
6!if $(TPM2_ENABLE) == TRUE
7!if $(TPM1_ENABLE) == TRUE
8 Tpm12CommandLib|SecurityPkg/Library/Tpm12CommandLib/Tpm12CommandLib.inf
9!endif
10 Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf
11 Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibQemu/DxeTcg2PhysicalPresenceLib.inf
12 Tcg2PpVendorLib|SecurityPkg/Library/Tcg2PpVendorLibNull/Tcg2PpVendorLibNull.inf
13!else
14 Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibNull/DxeTcg2PhysicalPresenceLib.inf
15!endif
16
17!if $(TPM2_ENABLE) == TRUE || $(CC_MEASUREMENT_ENABLE) == TRUE
18 #
19 # DxeTpmMeasurementLib supports measurement functions for both TPM and Confidential Computing.
20 # It should be controlled by TPM2_ENABLE and CC_MEASUREMENT_ENABLE.
21 #
22 TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
23!else
24 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
25!endif
26
27[LibraryClasses.common.PEIM]
28!if $(TPM2_ENABLE) == TRUE
29 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
30!if $(TPM1_ENABLE) == TRUE
31 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
32!endif
33 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
34!endif
35
36[LibraryClasses.common.DXE_DRIVER]
37!if $(TPM2_ENABLE) == TRUE
38!if $(TPM1_ENABLE) == TRUE
39 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
40!endif
41 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
42!endif
#define TRUE
Definition: Base.h:301