mirror of https://github.com/acidanthera/audk.git
OvmfPkg: Update OvmfTpmLibs.dsc.inc to add PeiTpmMeasurementLib.inf
Because PeiTpmMeasurementLib supports both TCG measurement and CC measurement, it shall be controled by TPM2_ENABLE and CC_MEASUREMENT_EANBLE. Cc: Erdem Aktas <erdemaktas@google.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Min Xu <min.m.xu@intel.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: Elena Reshetova <elena.reshetova@intel.com> Signed-off-by: Min Xu <min.m.xu@intel.com> Signed-off-by: Ceping Sun <cepingx.sun@intel.com>
This commit is contained in:
parent
7689c0d9fa
commit
9f9657e7da
|
@ -33,6 +33,16 @@
|
||||||
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
|
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
|
!if $(TPM2_ENABLE) == TRUE || $(CC_MEASUREMENT_ENABLE) == TRUE
|
||||||
|
#
|
||||||
|
# PeiTpmMeasurementLib supports measurement functions for both TPM and Confidential Computing.
|
||||||
|
# It should be controlled by TPM2_ENABLE and CC_MEASUREMENT_ENABLE.
|
||||||
|
#
|
||||||
|
TpmMeasurementLib|SecurityPkg/Library/PeiTpmMeasurementLib/PeiTpmMeasurementLib.inf
|
||||||
|
!else
|
||||||
|
TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
|
||||||
|
!endif
|
||||||
|
|
||||||
[LibraryClasses.common.DXE_DRIVER]
|
[LibraryClasses.common.DXE_DRIVER]
|
||||||
!if $(TPM2_ENABLE) == TRUE
|
!if $(TPM2_ENABLE) == TRUE
|
||||||
!if $(TPM1_ENABLE) == TRUE
|
!if $(TPM1_ENABLE) == TRUE
|
||||||
|
|
Loading…
Reference in New Issue