OvmfPkg: move tcg configuration to dsc and fdf include files
With this in place the tpm configuration is not duplicated for each of our four ovmf config variants (ia32, ia32x64, x64, amdsev) and it is easier to keep them all in sync when updating the tpm configuration. No functional change. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
committed by
mergify[bot]
parent
3a72ec71cd
commit
b47575801e
@ -32,8 +32,8 @@
|
|||||||
# -D FLAG=VALUE
|
# -D FLAG=VALUE
|
||||||
#
|
#
|
||||||
DEFINE SOURCE_DEBUG_ENABLE = FALSE
|
DEFINE SOURCE_DEBUG_ENABLE = FALSE
|
||||||
DEFINE TPM_ENABLE = FALSE
|
|
||||||
DEFINE TPM_CONFIG_ENABLE = FALSE
|
!include OvmfPkg/OvmfTpmDefines.dsc.inc
|
||||||
|
|
||||||
#
|
#
|
||||||
# Shell can be useful for debugging but should not be enabled for production
|
# Shell can be useful for debugging but should not be enabled for production
|
||||||
@ -203,16 +203,7 @@
|
|||||||
SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
|
SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
|
||||||
OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
|
OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
|
||||||
|
|
||||||
!if $(TPM_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmLibs.dsc.inc
|
||||||
Tpm12CommandLib|SecurityPkg/Library/Tpm12CommandLib/Tpm12CommandLib.inf
|
|
||||||
Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf
|
|
||||||
Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibQemu/DxeTcg2PhysicalPresenceLib.inf
|
|
||||||
Tcg2PpVendorLib|SecurityPkg/Library/Tcg2PpVendorLibNull/Tcg2PpVendorLibNull.inf
|
|
||||||
TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
|
|
||||||
!else
|
|
||||||
Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibNull/DxeTcg2PhysicalPresenceLib.inf
|
|
||||||
TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
|
|
||||||
!endif
|
|
||||||
|
|
||||||
[LibraryClasses.common]
|
[LibraryClasses.common]
|
||||||
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
|
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
|
||||||
@ -286,11 +277,7 @@
|
|||||||
PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
|
PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
|
||||||
QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
|
QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
|
||||||
|
|
||||||
!if $(TPM_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmLibsPeim.dsc.inc
|
||||||
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
|
|
||||||
Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
|
|
||||||
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
|
|
||||||
!endif
|
|
||||||
|
|
||||||
MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
|
MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
|
||||||
|
|
||||||
@ -371,10 +358,8 @@
|
|||||||
MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
|
MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
|
||||||
QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
|
QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
|
||||||
QemuLoadImageLib|OvmfPkg/Library/GenericQemuLoadImageLib/GenericQemuLoadImageLib.inf
|
QemuLoadImageLib|OvmfPkg/Library/GenericQemuLoadImageLib/GenericQemuLoadImageLib.inf
|
||||||
!if $(TPM_ENABLE) == TRUE
|
|
||||||
Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
|
!include OvmfPkg/OvmfTpmLibsDxe.dsc.inc
|
||||||
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
|
|
||||||
!endif
|
|
||||||
|
|
||||||
[LibraryClasses.common.UEFI_APPLICATION]
|
[LibraryClasses.common.UEFI_APPLICATION]
|
||||||
PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
|
PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
|
||||||
@ -580,15 +565,10 @@
|
|||||||
# Set ConfidentialComputing defaults
|
# Set ConfidentialComputing defaults
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
|
gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
|
||||||
|
|
||||||
!if $(TPM_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmPcds.dsc.inc
|
||||||
gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
|
|
||||||
!endif
|
|
||||||
|
|
||||||
[PcdsDynamicHii]
|
[PcdsDynamicHii]
|
||||||
!if $(TPM_ENABLE) == TRUE && $(TPM_CONFIG_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmPcdsHii.dsc.inc
|
||||||
gEfiSecurityPkgTokenSpaceGuid.PcdTcgPhysicalPresenceInterfaceVer|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x0|"1.3"|NV,BS
|
|
||||||
gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableRev|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x8|3|NV,BS
|
|
||||||
!endif
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
@ -629,24 +609,7 @@
|
|||||||
UefiCpuPkg/CpuMpPei/CpuMpPei.inf
|
UefiCpuPkg/CpuMpPei/CpuMpPei.inf
|
||||||
OvmfPkg/AmdSev/SecretPei/SecretPei.inf
|
OvmfPkg/AmdSev/SecretPei/SecretPei.inf
|
||||||
|
|
||||||
!if $(TPM_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmComponentsPei.dsc.inc
|
||||||
OvmfPkg/Tcg/TpmMmioSevDecryptPei/TpmMmioSevDecryptPei.inf
|
|
||||||
OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
|
|
||||||
SecurityPkg/Tcg/TcgPei/TcgPei.inf
|
|
||||||
SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf {
|
|
||||||
<LibraryClasses>
|
|
||||||
HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
|
|
||||||
}
|
|
||||||
SecurityPkg/Tcg/Tcg2PlatformPei/Tcg2PlatformPei.inf {
|
|
||||||
<LibraryClasses>
|
|
||||||
TpmPlatformHierarchyLib|SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLib/PeiDxeTpmPlatformHierarchyLib.inf
|
|
||||||
}
|
|
||||||
!endif
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# DXE Phase modules
|
# DXE Phase modules
|
||||||
@ -668,10 +631,7 @@
|
|||||||
|
|
||||||
MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
|
MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
|
||||||
<LibraryClasses>
|
<LibraryClasses>
|
||||||
!if $(TPM_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmSecurityStub.dsc.inc
|
||||||
NULL|SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLib.inf
|
|
||||||
NULL|SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf
|
|
||||||
!endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
|
MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
|
||||||
@ -843,27 +803,4 @@
|
|||||||
#
|
#
|
||||||
# TPM support
|
# TPM support
|
||||||
#
|
#
|
||||||
!if $(TPM_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmComponentsDxe.dsc.inc
|
||||||
SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf {
|
|
||||||
<LibraryClasses>
|
|
||||||
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
|
|
||||||
NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
|
|
||||||
HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
|
|
||||||
}
|
|
||||||
!if $(TPM_CONFIG_ENABLE) == TRUE
|
|
||||||
SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf
|
|
||||||
!endif
|
|
||||||
SecurityPkg/Tcg/TcgDxe/TcgDxe.inf {
|
|
||||||
<LibraryClasses>
|
|
||||||
Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
|
|
||||||
}
|
|
||||||
SecurityPkg/Tcg/Tcg2PlatformDxe/Tcg2PlatformDxe.inf {
|
|
||||||
<LibraryClasses>
|
|
||||||
TpmPlatformHierarchyLib|SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLib/PeiDxeTpmPlatformHierarchyLib.inf
|
|
||||||
}
|
|
||||||
!endif
|
|
||||||
|
@ -156,13 +156,7 @@ INF UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
|
|||||||
INF UefiCpuPkg/CpuMpPei/CpuMpPei.inf
|
INF UefiCpuPkg/CpuMpPei/CpuMpPei.inf
|
||||||
INF OvmfPkg/AmdSev/SecretPei/SecretPei.inf
|
INF OvmfPkg/AmdSev/SecretPei/SecretPei.inf
|
||||||
|
|
||||||
!if $(TPM_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmPei.fdf.inc
|
||||||
INF OvmfPkg/Tcg/TpmMmioSevDecryptPei/TpmMmioSevDecryptPei.inf
|
|
||||||
INF OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
|
|
||||||
INF SecurityPkg/Tcg/TcgPei/TcgPei.inf
|
|
||||||
INF SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf
|
|
||||||
INF SecurityPkg/Tcg/Tcg2PlatformPei/Tcg2PlatformPei.inf
|
|
||||||
!endif
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
@ -317,14 +311,7 @@ INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
|
|||||||
#
|
#
|
||||||
# TPM support
|
# TPM support
|
||||||
#
|
#
|
||||||
!if $(TPM_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmDxe.fdf.inc
|
||||||
INF SecurityPkg/Tcg/TcgDxe/TcgDxe.inf
|
|
||||||
INF SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf
|
|
||||||
INF SecurityPkg/Tcg/Tcg2PlatformDxe/Tcg2PlatformDxe.inf
|
|
||||||
!if $(TPM_CONFIG_ENABLE) == TRUE
|
|
||||||
INF SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf
|
|
||||||
!endif
|
|
||||||
!endif
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
@ -32,10 +32,10 @@
|
|||||||
DEFINE SECURE_BOOT_ENABLE = FALSE
|
DEFINE SECURE_BOOT_ENABLE = FALSE
|
||||||
DEFINE SMM_REQUIRE = FALSE
|
DEFINE SMM_REQUIRE = FALSE
|
||||||
DEFINE SOURCE_DEBUG_ENABLE = FALSE
|
DEFINE SOURCE_DEBUG_ENABLE = FALSE
|
||||||
DEFINE TPM_ENABLE = FALSE
|
|
||||||
DEFINE TPM_CONFIG_ENABLE = FALSE
|
|
||||||
DEFINE LOAD_X64_ON_IA32_ENABLE = FALSE
|
DEFINE LOAD_X64_ON_IA32_ENABLE = FALSE
|
||||||
|
|
||||||
|
!include OvmfPkg/OvmfTpmDefines.dsc.inc
|
||||||
|
|
||||||
#
|
#
|
||||||
# Network definition
|
# Network definition
|
||||||
#
|
#
|
||||||
@ -229,16 +229,7 @@
|
|||||||
SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
|
SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
|
||||||
OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
|
OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
|
||||||
|
|
||||||
!if $(TPM_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmLibs.dsc.inc
|
||||||
Tpm12CommandLib|SecurityPkg/Library/Tpm12CommandLib/Tpm12CommandLib.inf
|
|
||||||
Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf
|
|
||||||
Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibQemu/DxeTcg2PhysicalPresenceLib.inf
|
|
||||||
Tcg2PpVendorLib|SecurityPkg/Library/Tcg2PpVendorLibNull/Tcg2PpVendorLibNull.inf
|
|
||||||
TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
|
|
||||||
!else
|
|
||||||
Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibNull/DxeTcg2PhysicalPresenceLib.inf
|
|
||||||
TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
|
|
||||||
!endif
|
|
||||||
|
|
||||||
[LibraryClasses.common]
|
[LibraryClasses.common]
|
||||||
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
|
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
|
||||||
@ -310,11 +301,7 @@
|
|||||||
PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
|
PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
|
||||||
QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
|
QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
|
||||||
|
|
||||||
!if $(TPM_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmLibsPeim.dsc.inc
|
||||||
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
|
|
||||||
Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
|
|
||||||
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
|
|
||||||
!endif
|
|
||||||
|
|
||||||
MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
|
MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
|
||||||
|
|
||||||
@ -402,10 +389,8 @@
|
|||||||
MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
|
MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
|
||||||
QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
|
QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
|
||||||
QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
|
QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
|
||||||
!if $(TPM_ENABLE) == TRUE
|
|
||||||
Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
|
!include OvmfPkg/OvmfTpmLibsDxe.dsc.inc
|
||||||
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
|
|
||||||
!endif
|
|
||||||
|
|
||||||
[LibraryClasses.common.UEFI_APPLICATION]
|
[LibraryClasses.common.UEFI_APPLICATION]
|
||||||
PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
|
PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
|
||||||
@ -645,9 +630,7 @@
|
|||||||
|
|
||||||
gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
|
gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
|
||||||
|
|
||||||
!if $(TPM_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmPcds.dsc.inc
|
||||||
gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
|
|
||||||
!endif
|
|
||||||
|
|
||||||
# IPv4 and IPv6 PXE Boot support.
|
# IPv4 and IPv6 PXE Boot support.
|
||||||
gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
|
gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
|
||||||
@ -657,10 +640,7 @@
|
|||||||
gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
|
gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
|
||||||
|
|
||||||
[PcdsDynamicHii]
|
[PcdsDynamicHii]
|
||||||
!if $(TPM_ENABLE) == TRUE && $(TPM_CONFIG_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmPcdsHii.dsc.inc
|
||||||
gEfiSecurityPkgTokenSpaceGuid.PcdTcgPhysicalPresenceInterfaceVer|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x0|"1.3"|NV,BS
|
|
||||||
gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableRev|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x8|3|NV,BS
|
|
||||||
!endif
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
@ -710,24 +690,7 @@
|
|||||||
!endif
|
!endif
|
||||||
UefiCpuPkg/CpuMpPei/CpuMpPei.inf
|
UefiCpuPkg/CpuMpPei/CpuMpPei.inf
|
||||||
|
|
||||||
!if $(TPM_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmComponentsPei.dsc.inc
|
||||||
OvmfPkg/Tcg/TpmMmioSevDecryptPei/TpmMmioSevDecryptPei.inf
|
|
||||||
OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
|
|
||||||
SecurityPkg/Tcg/TcgPei/TcgPei.inf
|
|
||||||
SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf {
|
|
||||||
<LibraryClasses>
|
|
||||||
HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
|
|
||||||
}
|
|
||||||
SecurityPkg/Tcg/Tcg2PlatformPei/Tcg2PlatformPei.inf {
|
|
||||||
<LibraryClasses>
|
|
||||||
TpmPlatformHierarchyLib|SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLib/PeiDxeTpmPlatformHierarchyLib.inf
|
|
||||||
}
|
|
||||||
!endif
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# DXE Phase modules
|
# DXE Phase modules
|
||||||
@ -752,10 +715,7 @@
|
|||||||
!if $(SECURE_BOOT_ENABLE) == TRUE
|
!if $(SECURE_BOOT_ENABLE) == TRUE
|
||||||
NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
|
NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
|
||||||
!endif
|
!endif
|
||||||
!if $(TPM_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmSecurityStub.dsc.inc
|
||||||
NULL|SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLib.inf
|
|
||||||
NULL|SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf
|
|
||||||
!endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
|
MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
|
||||||
@ -1024,31 +984,5 @@
|
|||||||
#
|
#
|
||||||
# TPM support
|
# TPM support
|
||||||
#
|
#
|
||||||
!if $(TPM_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmComponentsDxe.dsc.inc
|
||||||
SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf {
|
|
||||||
<LibraryClasses>
|
|
||||||
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
|
|
||||||
NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
|
|
||||||
HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
|
|
||||||
}
|
|
||||||
!if $(TPM_CONFIG_ENABLE) == TRUE
|
|
||||||
SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf
|
|
||||||
!endif
|
|
||||||
SecurityPkg/Tcg/TcgDxe/TcgDxe.inf {
|
|
||||||
<LibraryClasses>
|
|
||||||
Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
|
|
||||||
}
|
|
||||||
SecurityPkg/Tcg/Tcg2PlatformDxe/Tcg2PlatformDxe.inf {
|
|
||||||
<LibraryClasses>
|
|
||||||
TpmPlatformHierarchyLib|SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLib/PeiDxeTpmPlatformHierarchyLib.inf
|
|
||||||
}
|
|
||||||
!endif
|
|
||||||
|
|
||||||
!if $(LOAD_X64_ON_IA32_ENABLE) == TRUE
|
|
||||||
OvmfPkg/CompatImageLoaderDxe/CompatImageLoaderDxe.inf
|
|
||||||
!endif
|
|
||||||
|
@ -161,13 +161,7 @@ INF OvmfPkg/SmmAccess/SmmAccessPei.inf
|
|||||||
!endif
|
!endif
|
||||||
INF UefiCpuPkg/CpuMpPei/CpuMpPei.inf
|
INF UefiCpuPkg/CpuMpPei/CpuMpPei.inf
|
||||||
|
|
||||||
!if $(TPM_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmPei.fdf.inc
|
||||||
INF OvmfPkg/Tcg/TpmMmioSevDecryptPei/TpmMmioSevDecryptPei.inf
|
|
||||||
INF OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
|
|
||||||
INF SecurityPkg/Tcg/TcgPei/TcgPei.inf
|
|
||||||
INF SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf
|
|
||||||
INF SecurityPkg/Tcg/Tcg2PlatformPei/Tcg2PlatformPei.inf
|
|
||||||
!endif
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
@ -360,14 +354,7 @@ INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
|
|||||||
#
|
#
|
||||||
# TPM support
|
# TPM support
|
||||||
#
|
#
|
||||||
!if $(TPM_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmDxe.fdf.inc
|
||||||
INF SecurityPkg/Tcg/TcgDxe/TcgDxe.inf
|
|
||||||
INF SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf
|
|
||||||
INF SecurityPkg/Tcg/Tcg2PlatformDxe/Tcg2PlatformDxe.inf
|
|
||||||
!if $(TPM_CONFIG_ENABLE) == TRUE
|
|
||||||
INF SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf
|
|
||||||
!endif
|
|
||||||
!endif
|
|
||||||
|
|
||||||
!if $(LOAD_X64_ON_IA32_ENABLE) == TRUE
|
!if $(LOAD_X64_ON_IA32_ENABLE) == TRUE
|
||||||
INF OvmfPkg/CompatImageLoaderDxe/CompatImageLoaderDxe.inf
|
INF OvmfPkg/CompatImageLoaderDxe/CompatImageLoaderDxe.inf
|
||||||
|
@ -32,8 +32,8 @@
|
|||||||
DEFINE SECURE_BOOT_ENABLE = FALSE
|
DEFINE SECURE_BOOT_ENABLE = FALSE
|
||||||
DEFINE SMM_REQUIRE = FALSE
|
DEFINE SMM_REQUIRE = FALSE
|
||||||
DEFINE SOURCE_DEBUG_ENABLE = FALSE
|
DEFINE SOURCE_DEBUG_ENABLE = FALSE
|
||||||
DEFINE TPM_ENABLE = FALSE
|
|
||||||
DEFINE TPM_CONFIG_ENABLE = FALSE
|
!include OvmfPkg/OvmfTpmDefines.dsc.inc
|
||||||
|
|
||||||
#
|
#
|
||||||
# Network definition
|
# Network definition
|
||||||
@ -233,16 +233,7 @@
|
|||||||
SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
|
SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
|
||||||
OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
|
OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
|
||||||
|
|
||||||
!if $(TPM_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmLibs.dsc.inc
|
||||||
Tpm12CommandLib|SecurityPkg/Library/Tpm12CommandLib/Tpm12CommandLib.inf
|
|
||||||
Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf
|
|
||||||
Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibQemu/DxeTcg2PhysicalPresenceLib.inf
|
|
||||||
Tcg2PpVendorLib|SecurityPkg/Library/Tcg2PpVendorLibNull/Tcg2PpVendorLibNull.inf
|
|
||||||
TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
|
|
||||||
!else
|
|
||||||
Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibNull/DxeTcg2PhysicalPresenceLib.inf
|
|
||||||
TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
|
|
||||||
!endif
|
|
||||||
|
|
||||||
[LibraryClasses.common]
|
[LibraryClasses.common]
|
||||||
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
|
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
|
||||||
@ -314,11 +305,7 @@
|
|||||||
PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
|
PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
|
||||||
QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
|
QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
|
||||||
|
|
||||||
!if $(TPM_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmLibsPeim.dsc.inc
|
||||||
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
|
|
||||||
Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
|
|
||||||
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
|
|
||||||
!endif
|
|
||||||
|
|
||||||
MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
|
MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
|
||||||
|
|
||||||
@ -406,10 +393,8 @@
|
|||||||
MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
|
MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
|
||||||
QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
|
QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
|
||||||
QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
|
QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
|
||||||
!if $(TPM_ENABLE) == TRUE
|
|
||||||
Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
|
!include OvmfPkg/OvmfTpmLibsDxe.dsc.inc
|
||||||
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
|
|
||||||
!endif
|
|
||||||
|
|
||||||
[LibraryClasses.common.UEFI_APPLICATION]
|
[LibraryClasses.common.UEFI_APPLICATION]
|
||||||
PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
|
PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
|
||||||
@ -657,9 +642,7 @@
|
|||||||
|
|
||||||
gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
|
gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
|
||||||
|
|
||||||
!if $(TPM_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmPcds.dsc.inc
|
||||||
gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
|
|
||||||
!endif
|
|
||||||
|
|
||||||
# Set ConfidentialComputing defaults
|
# Set ConfidentialComputing defaults
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
|
gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
|
||||||
@ -670,10 +653,7 @@
|
|||||||
gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
|
gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
|
||||||
|
|
||||||
[PcdsDynamicHii]
|
[PcdsDynamicHii]
|
||||||
!if $(TPM_ENABLE) == TRUE && $(TPM_CONFIG_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmPcdsHii.dsc.inc
|
||||||
gEfiSecurityPkgTokenSpaceGuid.PcdTcgPhysicalPresenceInterfaceVer|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x0|"1.3"|NV,BS
|
|
||||||
gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableRev|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x8|3|NV,BS
|
|
||||||
!endif
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
@ -723,24 +703,7 @@
|
|||||||
!endif
|
!endif
|
||||||
UefiCpuPkg/CpuMpPei/CpuMpPei.inf
|
UefiCpuPkg/CpuMpPei/CpuMpPei.inf
|
||||||
|
|
||||||
!if $(TPM_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmComponentsPei.dsc.inc
|
||||||
OvmfPkg/Tcg/TpmMmioSevDecryptPei/TpmMmioSevDecryptPei.inf
|
|
||||||
OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
|
|
||||||
SecurityPkg/Tcg/TcgPei/TcgPei.inf
|
|
||||||
SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf {
|
|
||||||
<LibraryClasses>
|
|
||||||
HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
|
|
||||||
}
|
|
||||||
SecurityPkg/Tcg/Tcg2PlatformPei/Tcg2PlatformPei.inf {
|
|
||||||
<LibraryClasses>
|
|
||||||
TpmPlatformHierarchyLib|SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLib/PeiDxeTpmPlatformHierarchyLib.inf
|
|
||||||
}
|
|
||||||
!endif
|
|
||||||
|
|
||||||
[Components.X64]
|
[Components.X64]
|
||||||
#
|
#
|
||||||
@ -766,10 +729,7 @@
|
|||||||
!if $(SECURE_BOOT_ENABLE) == TRUE
|
!if $(SECURE_BOOT_ENABLE) == TRUE
|
||||||
NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
|
NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
|
||||||
!endif
|
!endif
|
||||||
!if $(TPM_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmSecurityStub.dsc.inc
|
||||||
NULL|SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLib.inf
|
|
||||||
NULL|SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf
|
|
||||||
!endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
|
MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
|
||||||
@ -1042,27 +1002,4 @@
|
|||||||
#
|
#
|
||||||
# TPM support
|
# TPM support
|
||||||
#
|
#
|
||||||
!if $(TPM_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmComponentsDxe.dsc.inc
|
||||||
SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf {
|
|
||||||
<LibraryClasses>
|
|
||||||
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
|
|
||||||
NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
|
|
||||||
HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
|
|
||||||
}
|
|
||||||
!if $(TPM_CONFIG_ENABLE) == TRUE
|
|
||||||
SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf
|
|
||||||
!endif
|
|
||||||
SecurityPkg/Tcg/TcgDxe/TcgDxe.inf {
|
|
||||||
<LibraryClasses>
|
|
||||||
Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
|
|
||||||
}
|
|
||||||
SecurityPkg/Tcg/Tcg2PlatformDxe/Tcg2PlatformDxe.inf {
|
|
||||||
<LibraryClasses>
|
|
||||||
TpmPlatformHierarchyLib|SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLib/PeiDxeTpmPlatformHierarchyLib.inf
|
|
||||||
}
|
|
||||||
!endif
|
|
||||||
|
@ -164,13 +164,7 @@ INF OvmfPkg/SmmAccess/SmmAccessPei.inf
|
|||||||
!endif
|
!endif
|
||||||
INF UefiCpuPkg/CpuMpPei/CpuMpPei.inf
|
INF UefiCpuPkg/CpuMpPei/CpuMpPei.inf
|
||||||
|
|
||||||
!if $(TPM_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmPei.fdf.inc
|
||||||
INF OvmfPkg/Tcg/TpmMmioSevDecryptPei/TpmMmioSevDecryptPei.inf
|
|
||||||
INF OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
|
|
||||||
INF SecurityPkg/Tcg/TcgPei/TcgPei.inf
|
|
||||||
INF SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf
|
|
||||||
INF SecurityPkg/Tcg/Tcg2PlatformPei/Tcg2PlatformPei.inf
|
|
||||||
!endif
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
@ -370,14 +364,7 @@ INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
|
|||||||
#
|
#
|
||||||
# TPM support
|
# TPM support
|
||||||
#
|
#
|
||||||
!if $(TPM_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmDxe.fdf.inc
|
||||||
INF SecurityPkg/Tcg/TcgDxe/TcgDxe.inf
|
|
||||||
INF SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf
|
|
||||||
INF SecurityPkg/Tcg/Tcg2PlatformDxe/Tcg2PlatformDxe.inf
|
|
||||||
!if $(TPM_CONFIG_ENABLE) == TRUE
|
|
||||||
INF SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf
|
|
||||||
!endif
|
|
||||||
!endif
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
@ -32,8 +32,8 @@
|
|||||||
DEFINE SECURE_BOOT_ENABLE = FALSE
|
DEFINE SECURE_BOOT_ENABLE = FALSE
|
||||||
DEFINE SMM_REQUIRE = FALSE
|
DEFINE SMM_REQUIRE = FALSE
|
||||||
DEFINE SOURCE_DEBUG_ENABLE = FALSE
|
DEFINE SOURCE_DEBUG_ENABLE = FALSE
|
||||||
DEFINE TPM_ENABLE = FALSE
|
|
||||||
DEFINE TPM_CONFIG_ENABLE = FALSE
|
!include OvmfPkg/OvmfTpmDefines.dsc.inc
|
||||||
|
|
||||||
#
|
#
|
||||||
# Network definition
|
# Network definition
|
||||||
@ -233,16 +233,7 @@
|
|||||||
SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
|
SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
|
||||||
OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
|
OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
|
||||||
|
|
||||||
!if $(TPM_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmLibs.dsc.inc
|
||||||
Tpm12CommandLib|SecurityPkg/Library/Tpm12CommandLib/Tpm12CommandLib.inf
|
|
||||||
Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf
|
|
||||||
Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibQemu/DxeTcg2PhysicalPresenceLib.inf
|
|
||||||
Tcg2PpVendorLib|SecurityPkg/Library/Tcg2PpVendorLibNull/Tcg2PpVendorLibNull.inf
|
|
||||||
TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
|
|
||||||
!else
|
|
||||||
Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibNull/DxeTcg2PhysicalPresenceLib.inf
|
|
||||||
TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
|
|
||||||
!endif
|
|
||||||
|
|
||||||
[LibraryClasses.common]
|
[LibraryClasses.common]
|
||||||
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
|
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
|
||||||
@ -315,11 +306,7 @@
|
|||||||
PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
|
PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
|
||||||
QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
|
QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
|
||||||
|
|
||||||
!if $(TPM_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmLibsPeim.dsc.inc
|
||||||
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
|
|
||||||
Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
|
|
||||||
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
|
|
||||||
!endif
|
|
||||||
|
|
||||||
MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
|
MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
|
||||||
|
|
||||||
@ -407,10 +394,8 @@
|
|||||||
MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
|
MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
|
||||||
QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
|
QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
|
||||||
QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
|
QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
|
||||||
!if $(TPM_ENABLE) == TRUE
|
|
||||||
Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
|
!include OvmfPkg/OvmfTpmLibsDxe.dsc.inc
|
||||||
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
|
|
||||||
!endif
|
|
||||||
|
|
||||||
[LibraryClasses.common.UEFI_APPLICATION]
|
[LibraryClasses.common.UEFI_APPLICATION]
|
||||||
PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
|
PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
|
||||||
@ -656,9 +641,7 @@
|
|||||||
|
|
||||||
gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
|
gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
|
||||||
|
|
||||||
!if $(TPM_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmPcds.dsc.inc
|
||||||
gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
|
|
||||||
!endif
|
|
||||||
|
|
||||||
# IPv4 and IPv6 PXE Boot support.
|
# IPv4 and IPv6 PXE Boot support.
|
||||||
gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
|
gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
|
||||||
@ -668,10 +651,7 @@
|
|||||||
gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
|
gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
|
||||||
|
|
||||||
[PcdsDynamicHii]
|
[PcdsDynamicHii]
|
||||||
!if $(TPM_ENABLE) == TRUE && $(TPM_CONFIG_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmPcdsHii.dsc.inc
|
||||||
gEfiSecurityPkgTokenSpaceGuid.PcdTcgPhysicalPresenceInterfaceVer|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x0|"1.3"|NV,BS
|
|
||||||
gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableRev|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x8|3|NV,BS
|
|
||||||
!endif
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
@ -721,24 +701,7 @@
|
|||||||
!endif
|
!endif
|
||||||
UefiCpuPkg/CpuMpPei/CpuMpPei.inf
|
UefiCpuPkg/CpuMpPei/CpuMpPei.inf
|
||||||
|
|
||||||
!if $(TPM_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmComponentsPei.dsc.inc
|
||||||
OvmfPkg/Tcg/TpmMmioSevDecryptPei/TpmMmioSevDecryptPei.inf
|
|
||||||
OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
|
|
||||||
SecurityPkg/Tcg/TcgPei/TcgPei.inf
|
|
||||||
SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf {
|
|
||||||
<LibraryClasses>
|
|
||||||
HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
|
|
||||||
}
|
|
||||||
SecurityPkg/Tcg/Tcg2PlatformPei/Tcg2PlatformPei.inf {
|
|
||||||
<LibraryClasses>
|
|
||||||
TpmPlatformHierarchyLib|SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLib/PeiDxeTpmPlatformHierarchyLib.inf
|
|
||||||
}
|
|
||||||
!endif
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# DXE Phase modules
|
# DXE Phase modules
|
||||||
@ -762,10 +725,7 @@
|
|||||||
<LibraryClasses>
|
<LibraryClasses>
|
||||||
!if $(SECURE_BOOT_ENABLE) == TRUE
|
!if $(SECURE_BOOT_ENABLE) == TRUE
|
||||||
NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
|
NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
|
||||||
!endif
|
!include OvmfPkg/OvmfTpmSecurityStub.dsc.inc
|
||||||
!if $(TPM_ENABLE) == TRUE
|
|
||||||
NULL|SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLib.inf
|
|
||||||
NULL|SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf
|
|
||||||
!endif
|
!endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1039,27 +999,4 @@
|
|||||||
#
|
#
|
||||||
# TPM support
|
# TPM support
|
||||||
#
|
#
|
||||||
!if $(TPM_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmComponentsDxe.dsc.inc
|
||||||
SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf {
|
|
||||||
<LibraryClasses>
|
|
||||||
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
|
|
||||||
NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
|
|
||||||
HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
|
|
||||||
NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
|
|
||||||
}
|
|
||||||
!if $(TPM_CONFIG_ENABLE) == TRUE
|
|
||||||
SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf
|
|
||||||
!endif
|
|
||||||
SecurityPkg/Tcg/TcgDxe/TcgDxe.inf {
|
|
||||||
<LibraryClasses>
|
|
||||||
Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
|
|
||||||
}
|
|
||||||
SecurityPkg/Tcg/Tcg2PlatformDxe/Tcg2PlatformDxe.inf {
|
|
||||||
<LibraryClasses>
|
|
||||||
TpmPlatformHierarchyLib|SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLib/PeiDxeTpmPlatformHierarchyLib.inf
|
|
||||||
}
|
|
||||||
!endif
|
|
||||||
|
@ -186,13 +186,7 @@ INF OvmfPkg/SmmAccess/SmmAccessPei.inf
|
|||||||
!endif
|
!endif
|
||||||
INF UefiCpuPkg/CpuMpPei/CpuMpPei.inf
|
INF UefiCpuPkg/CpuMpPei/CpuMpPei.inf
|
||||||
|
|
||||||
!if $(TPM_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmPei.fdf.inc
|
||||||
INF OvmfPkg/Tcg/TpmMmioSevDecryptPei/TpmMmioSevDecryptPei.inf
|
|
||||||
INF OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
|
|
||||||
INF SecurityPkg/Tcg/TcgPei/TcgPei.inf
|
|
||||||
INF SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf
|
|
||||||
INF SecurityPkg/Tcg/Tcg2PlatformPei/Tcg2PlatformPei.inf
|
|
||||||
!endif
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
@ -392,14 +386,7 @@ INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
|
|||||||
#
|
#
|
||||||
# TPM support
|
# TPM support
|
||||||
#
|
#
|
||||||
!if $(TPM_ENABLE) == TRUE
|
!include OvmfPkg/OvmfTpmDxe.fdf.inc
|
||||||
INF SecurityPkg/Tcg/TcgDxe/TcgDxe.inf
|
|
||||||
INF SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf
|
|
||||||
INF SecurityPkg/Tcg/Tcg2PlatformDxe/Tcg2PlatformDxe.inf
|
|
||||||
!if $(TPM_CONFIG_ENABLE) == TRUE
|
|
||||||
INF SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf
|
|
||||||
!endif
|
|
||||||
!endif
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
28
OvmfPkg/OvmfTpmComponentsDxe.dsc.inc
Normal file
28
OvmfPkg/OvmfTpmComponentsDxe.dsc.inc
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
##
|
||||||
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
##
|
||||||
|
|
||||||
|
!if $(TPM_ENABLE) == TRUE
|
||||||
|
SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf {
|
||||||
|
<LibraryClasses>
|
||||||
|
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
|
||||||
|
NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
|
||||||
|
HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
|
||||||
|
NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
|
||||||
|
NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
|
||||||
|
NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
|
||||||
|
NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
|
||||||
|
NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
|
||||||
|
}
|
||||||
|
!if $(TPM_CONFIG_ENABLE) == TRUE
|
||||||
|
SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf
|
||||||
|
!endif
|
||||||
|
SecurityPkg/Tcg/TcgDxe/TcgDxe.inf {
|
||||||
|
<LibraryClasses>
|
||||||
|
Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
|
||||||
|
}
|
||||||
|
SecurityPkg/Tcg/Tcg2PlatformDxe/Tcg2PlatformDxe.inf {
|
||||||
|
<LibraryClasses>
|
||||||
|
TpmPlatformHierarchyLib|SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLib/PeiDxeTpmPlatformHierarchyLib.inf
|
||||||
|
}
|
||||||
|
!endif
|
22
OvmfPkg/OvmfTpmComponentsPei.dsc.inc
Normal file
22
OvmfPkg/OvmfTpmComponentsPei.dsc.inc
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
##
|
||||||
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
##
|
||||||
|
|
||||||
|
!if $(TPM_ENABLE) == TRUE
|
||||||
|
OvmfPkg/Tcg/TpmMmioSevDecryptPei/TpmMmioSevDecryptPei.inf
|
||||||
|
OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
|
||||||
|
SecurityPkg/Tcg/TcgPei/TcgPei.inf
|
||||||
|
SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf {
|
||||||
|
<LibraryClasses>
|
||||||
|
HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
|
||||||
|
NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
|
||||||
|
NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
|
||||||
|
NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
|
||||||
|
NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
|
||||||
|
NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
|
||||||
|
}
|
||||||
|
SecurityPkg/Tcg/Tcg2PlatformPei/Tcg2PlatformPei.inf {
|
||||||
|
<LibraryClasses>
|
||||||
|
TpmPlatformHierarchyLib|SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLib/PeiDxeTpmPlatformHierarchyLib.inf
|
||||||
|
}
|
||||||
|
!endif
|
6
OvmfPkg/OvmfTpmDefines.dsc.inc
Normal file
6
OvmfPkg/OvmfTpmDefines.dsc.inc
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
##
|
||||||
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
##
|
||||||
|
|
||||||
|
DEFINE TPM_ENABLE = FALSE
|
||||||
|
DEFINE TPM_CONFIG_ENABLE = FALSE
|
12
OvmfPkg/OvmfTpmDxe.fdf.inc
Normal file
12
OvmfPkg/OvmfTpmDxe.fdf.inc
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
##
|
||||||
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
##
|
||||||
|
|
||||||
|
!if $(TPM_ENABLE) == TRUE
|
||||||
|
INF SecurityPkg/Tcg/TcgDxe/TcgDxe.inf
|
||||||
|
INF SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf
|
||||||
|
INF SecurityPkg/Tcg/Tcg2PlatformDxe/Tcg2PlatformDxe.inf
|
||||||
|
!if $(TPM_CONFIG_ENABLE) == TRUE
|
||||||
|
INF SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf
|
||||||
|
!endif
|
||||||
|
!endif
|
14
OvmfPkg/OvmfTpmLibs.dsc.inc
Normal file
14
OvmfPkg/OvmfTpmLibs.dsc.inc
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
##
|
||||||
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
##
|
||||||
|
|
||||||
|
!if $(TPM_ENABLE) == TRUE
|
||||||
|
Tpm12CommandLib|SecurityPkg/Library/Tpm12CommandLib/Tpm12CommandLib.inf
|
||||||
|
Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf
|
||||||
|
Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibQemu/DxeTcg2PhysicalPresenceLib.inf
|
||||||
|
Tcg2PpVendorLib|SecurityPkg/Library/Tcg2PpVendorLibNull/Tcg2PpVendorLibNull.inf
|
||||||
|
TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
|
||||||
|
!else
|
||||||
|
Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibNull/DxeTcg2PhysicalPresenceLib.inf
|
||||||
|
TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
|
||||||
|
!endif
|
8
OvmfPkg/OvmfTpmLibsDxe.dsc.inc
Normal file
8
OvmfPkg/OvmfTpmLibsDxe.dsc.inc
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
##
|
||||||
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
##
|
||||||
|
|
||||||
|
!if $(TPM_ENABLE) == TRUE
|
||||||
|
Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
|
||||||
|
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
|
||||||
|
!endif
|
9
OvmfPkg/OvmfTpmLibsPeim.dsc.inc
Normal file
9
OvmfPkg/OvmfTpmLibsPeim.dsc.inc
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
##
|
||||||
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
##
|
||||||
|
|
||||||
|
!if $(TPM_ENABLE) == TRUE
|
||||||
|
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
|
||||||
|
Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
|
||||||
|
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
|
||||||
|
!endif
|
7
OvmfPkg/OvmfTpmPcds.dsc.inc
Normal file
7
OvmfPkg/OvmfTpmPcds.dsc.inc
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
##
|
||||||
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
##
|
||||||
|
|
||||||
|
!if $(TPM_ENABLE) == TRUE
|
||||||
|
gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
|
||||||
|
!endif
|
8
OvmfPkg/OvmfTpmPcdsHii.dsc.inc
Normal file
8
OvmfPkg/OvmfTpmPcdsHii.dsc.inc
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
##
|
||||||
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
##
|
||||||
|
|
||||||
|
!if $(TPM_ENABLE) == TRUE && $(TPM_CONFIG_ENABLE) == TRUE
|
||||||
|
gEfiSecurityPkgTokenSpaceGuid.PcdTcgPhysicalPresenceInterfaceVer|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x0|"1.3"|NV,BS
|
||||||
|
gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableRev|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x8|3|NV,BS
|
||||||
|
!endif
|
11
OvmfPkg/OvmfTpmPei.fdf.inc
Normal file
11
OvmfPkg/OvmfTpmPei.fdf.inc
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
##
|
||||||
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
##
|
||||||
|
|
||||||
|
!if $(TPM_ENABLE) == TRUE
|
||||||
|
INF OvmfPkg/Tcg/TpmMmioSevDecryptPei/TpmMmioSevDecryptPei.inf
|
||||||
|
INF OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
|
||||||
|
INF SecurityPkg/Tcg/TcgPei/TcgPei.inf
|
||||||
|
INF SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf
|
||||||
|
INF SecurityPkg/Tcg/Tcg2PlatformPei/Tcg2PlatformPei.inf
|
||||||
|
!endif
|
8
OvmfPkg/OvmfTpmSecurityStub.dsc.inc
Normal file
8
OvmfPkg/OvmfTpmSecurityStub.dsc.inc
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
##
|
||||||
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
##
|
||||||
|
|
||||||
|
!if $(TPM_ENABLE) == TRUE
|
||||||
|
NULL|SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLib.inf
|
||||||
|
NULL|SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf
|
||||||
|
!endif
|
Reference in New Issue
Block a user