]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/Include/Dsc/OvmfTpmLibs.dsc.inc
OvmfPkg: move dsc and fdf include snippets for TPM support to subdirs
[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
13 TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf\r
14!else\r
15 Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibNull/DxeTcg2PhysicalPresenceLib.inf\r
16 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf\r
17!endif\r
aa1bce0e
GH
18\r
19[LibraryClasses.common.PEIM]\r
20!if $(TPM2_ENABLE) == TRUE\r
21 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf\r
22!if $(TPM1_ENABLE) == TRUE\r
23 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf\r
24!endif\r
25 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf\r
26!endif\r
27\r
28[LibraryClasses.common.DXE_DRIVER]\r
29!if $(TPM2_ENABLE) == TRUE\r
30!if $(TPM1_ENABLE) == TRUE\r
31 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf\r
32!endif\r
33 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf\r
34!endif\r