|
32 | 32 | DEFINE SECURE_BOOT_ENABLE = FALSE
|
33 | 33 | DEFINE SMM_REQUIRE = FALSE
|
34 | 34 | DEFINE SOURCE_DEBUG_ENABLE = FALSE
|
35 |
| - DEFINE TPM_ENABLE = FALSE |
36 |
| - DEFINE TPM_CONFIG_ENABLE = FALSE |
37 | 35 | DEFINE LOAD_X64_ON_IA32_ENABLE = FALSE
|
38 | 36 |
|
| 37 | +!include OvmfPkg/OvmfTpmDefines.dsc.inc |
| 38 | + |
39 | 39 | #
|
40 | 40 | # Network definition
|
41 | 41 | #
|
|
229 | 229 | SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
|
230 | 230 | OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
|
231 | 231 |
|
232 |
| -!if $(TPM_ENABLE) == TRUE |
233 |
| - Tpm12CommandLib|SecurityPkg/Library/Tpm12CommandLib/Tpm12CommandLib.inf |
234 |
| - Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf |
235 |
| - Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibQemu/DxeTcg2PhysicalPresenceLib.inf |
236 |
| - Tcg2PpVendorLib|SecurityPkg/Library/Tcg2PpVendorLibNull/Tcg2PpVendorLibNull.inf |
237 |
| - TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf |
238 |
| -!else |
239 |
| - Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibNull/DxeTcg2PhysicalPresenceLib.inf |
240 |
| - TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf |
241 |
| -!endif |
| 232 | +!include OvmfPkg/OvmfTpmLibs.dsc.inc |
242 | 233 |
|
243 | 234 | [LibraryClasses.common]
|
244 | 235 | BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
|
|
310 | 301 | PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
|
311 | 302 | QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
|
312 | 303 |
|
313 |
| -!if $(TPM_ENABLE) == TRUE |
314 |
| - BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf |
315 |
| - Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf |
316 |
| - Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf |
317 |
| -!endif |
| 304 | +!include OvmfPkg/OvmfTpmLibsPeim.dsc.inc |
318 | 305 |
|
319 | 306 | MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
|
320 | 307 |
|
|
402 | 389 | MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
|
403 | 390 | QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
|
404 | 391 | QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
|
405 |
| -!if $(TPM_ENABLE) == TRUE |
406 |
| - Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf |
407 |
| - Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf |
408 |
| -!endif |
| 392 | + |
| 393 | +!include OvmfPkg/OvmfTpmLibsDxe.dsc.inc |
409 | 394 |
|
410 | 395 | [LibraryClasses.common.UEFI_APPLICATION]
|
411 | 396 | PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
|
|
645 | 630 |
|
646 | 631 | gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
|
647 | 632 |
|
648 |
| -!if $(TPM_ENABLE) == TRUE |
649 |
| - gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00} |
650 |
| -!endif |
| 633 | +!include OvmfPkg/OvmfTpmPcds.dsc.inc |
651 | 634 |
|
652 | 635 | # IPv4 and IPv6 PXE Boot support.
|
653 | 636 | gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
|
|
657 | 640 | gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
|
658 | 641 |
|
659 | 642 | [PcdsDynamicHii]
|
660 |
| -!if $(TPM_ENABLE) == TRUE && $(TPM_CONFIG_ENABLE) == TRUE |
661 |
| - gEfiSecurityPkgTokenSpaceGuid.PcdTcgPhysicalPresenceInterfaceVer|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x0|"1.3"|NV,BS |
662 |
| - gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableRev|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x8|3|NV,BS |
663 |
| -!endif |
| 643 | +!include OvmfPkg/OvmfTpmPcdsHii.dsc.inc |
664 | 644 |
|
665 | 645 | ################################################################################
|
666 | 646 | #
|
|
710 | 690 | !endif
|
711 | 691 | UefiCpuPkg/CpuMpPei/CpuMpPei.inf
|
712 | 692 |
|
713 |
| -!if $(TPM_ENABLE) == TRUE |
714 |
| - OvmfPkg/Tcg/TpmMmioSevDecryptPei/TpmMmioSevDecryptPei.inf |
715 |
| - OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf |
716 |
| - SecurityPkg/Tcg/TcgPei/TcgPei.inf |
717 |
| - SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf { |
718 |
| - <LibraryClasses> |
719 |
| - HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf |
720 |
| - NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf |
721 |
| - NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf |
722 |
| - NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf |
723 |
| - NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf |
724 |
| - NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf |
725 |
| - } |
726 |
| - SecurityPkg/Tcg/Tcg2PlatformPei/Tcg2PlatformPei.inf { |
727 |
| - <LibraryClasses> |
728 |
| - TpmPlatformHierarchyLib|SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLib/PeiDxeTpmPlatformHierarchyLib.inf |
729 |
| - } |
730 |
| -!endif |
| 693 | +!include OvmfPkg/OvmfTpmComponentsPei.dsc.inc |
731 | 694 |
|
732 | 695 | #
|
733 | 696 | # DXE Phase modules
|
|
752 | 715 | !if $(SECURE_BOOT_ENABLE) == TRUE
|
753 | 716 | NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
|
754 | 717 | !endif
|
755 |
| -!if $(TPM_ENABLE) == TRUE |
756 |
| - NULL|SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLib.inf |
757 |
| - NULL|SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf |
758 |
| -!endif |
| 718 | +!include OvmfPkg/OvmfTpmSecurityStub.dsc.inc |
759 | 719 | }
|
760 | 720 |
|
761 | 721 | MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
|
|
1024 | 984 | #
|
1025 | 985 | # TPM support
|
1026 | 986 | #
|
1027 |
| -!if $(TPM_ENABLE) == TRUE |
1028 |
| - SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf { |
1029 |
| - <LibraryClasses> |
1030 |
| - Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf |
1031 |
| - NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf |
1032 |
| - HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf |
1033 |
| - NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf |
1034 |
| - NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf |
1035 |
| - NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf |
1036 |
| - NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf |
1037 |
| - NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf |
1038 |
| - } |
1039 |
| -!if $(TPM_CONFIG_ENABLE) == TRUE |
1040 |
| - SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf |
1041 |
| -!endif |
1042 |
| - SecurityPkg/Tcg/TcgDxe/TcgDxe.inf { |
1043 |
| - <LibraryClasses> |
1044 |
| - Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf |
1045 |
| - } |
1046 |
| - SecurityPkg/Tcg/Tcg2PlatformDxe/Tcg2PlatformDxe.inf { |
1047 |
| - <LibraryClasses> |
1048 |
| - TpmPlatformHierarchyLib|SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLib/PeiDxeTpmPlatformHierarchyLib.inf |
1049 |
| - } |
1050 |
| -!endif |
| 987 | +!include OvmfPkg/OvmfTpmComponentsDxe.dsc.inc |
1051 | 988 |
|
1052 |
| -!if $(LOAD_X64_ON_IA32_ENABLE) == TRUE |
1053 |
| - OvmfPkg/CompatImageLoaderDxe/CompatImageLoaderDxe.inf |
1054 |
| -!endif |
0 commit comments