OvmfTpmLibs.dsc.inc 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. !else
  13. Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibNull/DxeTcg2PhysicalPresenceLib.inf
  14. !endif
  15. !if $(TPM2_ENABLE) == TRUE || $(CC_MEASUREMENT_ENABLE) == TRUE
  16. #
  17. # DxeTpmMeasurementLib supports measurement functions for both TPM and Confidential Computing.
  18. # It should be controlled by TPM2_ENABLE and CC_MEASUREMENT_ENABLE.
  19. #
  20. TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
  21. !else
  22. TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
  23. !endif
  24. [LibraryClasses.common.PEIM]
  25. !if $(TPM2_ENABLE) == TRUE
  26. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
  27. !if $(TPM1_ENABLE) == TRUE
  28. Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
  29. !endif
  30. Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
  31. !endif
  32. [LibraryClasses.common.DXE_DRIVER]
  33. !if $(TPM2_ENABLE) == TRUE
  34. !if $(TPM1_ENABLE) == TRUE
  35. Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
  36. !endif
  37. Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
  38. !endif