OvmfTpmLibs.dsc.inc 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. ##
  2. # SPDX-License-Identifier: BSD-2-Clause-Patent
  3. ##
  4. [LibraryClasses]
  5. !if $(TPM2_ENABLE) == TRUE
  6. !if $(TPM1_ENABLE) == TRUE
  7. Tpm12CommandLib|SecurityPkg/Library/Tpm12CommandLib/Tpm12CommandLib.inf
  8. !endif
  9. Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf
  10. Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibQemu/DxeTcg2PhysicalPresenceLib.inf
  11. Tcg2PpVendorLib|SecurityPkg/Library/Tcg2PpVendorLibNull/Tcg2PpVendorLibNull.inf
  12. TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
  13. !else
  14. Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibNull/DxeTcg2PhysicalPresenceLib.inf
  15. TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
  16. !endif
  17. [LibraryClasses.common.PEIM]
  18. !if $(TPM2_ENABLE) == TRUE
  19. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
  20. !if $(TPM1_ENABLE) == TRUE
  21. Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
  22. !endif
  23. Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
  24. !endif
  25. [LibraryClasses.common.DXE_DRIVER]
  26. !if $(TPM2_ENABLE) == TRUE
  27. !if $(TPM1_ENABLE) == TRUE
  28. Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
  29. !endif
  30. Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
  31. !endif