]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/OvmfTpmLibs.dsc.inc
UefiPayloadPkg: Add support for logging to CBMEM console
[mirror_edk2.git] / OvmfPkg / OvmfTpmLibs.dsc.inc
index 418747b1348763042620ff516f46b2690611e610..cd1a899d68f79ae1ff0164213c7f77f77564765e 100644 (file)
@@ -2,6 +2,7 @@
 #    SPDX-License-Identifier: BSD-2-Clause-Patent\r
 ##\r
 \r
+[LibraryClasses]\r
 !if $(TPM2_ENABLE) == TRUE\r
 !if $(TPM1_ENABLE) == TRUE\r
   Tpm12CommandLib|SecurityPkg/Library/Tpm12CommandLib/Tpm12CommandLib.inf\r
   Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibNull/DxeTcg2PhysicalPresenceLib.inf\r
   TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf\r
 !endif\r
+\r
+[LibraryClasses.common.PEIM]\r
+!if $(TPM2_ENABLE) == TRUE\r
+  BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf\r
+!if $(TPM1_ENABLE) == TRUE\r
+  Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf\r
+!endif\r
+  Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf\r
+!endif\r
+\r
+[LibraryClasses.common.DXE_DRIVER]\r
+!if $(TPM2_ENABLE) == TRUE\r
+!if $(TPM1_ENABLE) == TRUE\r
+  Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf\r
+!endif\r
+  Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf\r
+!endif\r