]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/Include/Dsc/OvmfTpmLibs.dsc.inc
OvmfPkg: Support Tdx measurement in OvmfPkgX64
[mirror_edk2.git] / OvmfPkg / Include / Dsc / OvmfTpmLibs.dsc.inc
CommitLineData
b4757580
GH
1##\r
2# SPDX-License-Identifier: BSD-2-Clause-Patent\r
3##\r
4\r
aa1bce0e 5[LibraryClasses]\r
4de8d61b
GH
6!if $(TPM2_ENABLE) == TRUE\r
7!if $(TPM1_ENABLE) == TRUE\r
b4757580 8 Tpm12CommandLib|SecurityPkg/Library/Tpm12CommandLib/Tpm12CommandLib.inf\r
4de8d61b 9!endif\r
b4757580
GH
10 Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf\r
11 Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibQemu/DxeTcg2PhysicalPresenceLib.inf\r
12 Tcg2PpVendorLib|SecurityPkg/Library/Tcg2PpVendorLibNull/Tcg2PpVendorLibNull.inf\r
b4757580
GH
13!else\r
14 Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibNull/DxeTcg2PhysicalPresenceLib.inf\r
4d37059d
MX
15!endif\r
16\r
17!if $(TPM2_ENABLE) == TRUE || $(CC_MEASUREMENT_ENABLE) == TRUE\r
18 #\r
19 # DxeTpmMeasurementLib supports measurement functions for both TPM and Confidential Computing.\r
20 # It should be controlled by TPM2_ENABLE and CC_MEASUREMENT_ENABLE.\r
21 #\r
22 TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf\r
23!else\r
b4757580
GH
24 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf\r
25!endif\r
aa1bce0e
GH
26\r
27[LibraryClasses.common.PEIM]\r
28!if $(TPM2_ENABLE) == TRUE\r
29 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf\r
30!if $(TPM1_ENABLE) == TRUE\r
31 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf\r
32!endif\r
33 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf\r
34!endif\r
35\r
36[LibraryClasses.common.DXE_DRIVER]\r
37!if $(TPM2_ENABLE) == TRUE\r
38!if $(TPM1_ENABLE) == TRUE\r
39 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf\r
40!endif\r
41 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf\r
42!endif\r