|
36 | 36 | #
|
37 | 37 | DEFINE BUILD_SHELL = TRUE
|
38 | 38 |
|
| 39 | + # |
| 40 | + # vTPM Should be enabled |
| 41 | + # |
| 42 | + DEFINE TPM2_ENABLE = TRUE |
| 43 | + DEFINE VTPM_ENABLE = TRUE |
| 44 | + |
39 | 45 | #
|
40 | 46 | # Device drivers
|
41 | 47 | #
|
|
90 | 96 | INTEL:*_*_*_CC_FLAGS = /D TDX_PEI_LESS_BOOT
|
91 | 97 | GCC:*_*_*_CC_FLAGS = -D TDX_PEI_LESS_BOOT
|
92 | 98 |
|
| 99 | + # |
| 100 | + # Add VTPM_FEATURE_ENABLED |
| 101 | + # |
| 102 | + MSFT:*_*_*_CC_FLAGS = /D VTPM_FEATURE_ENABLED |
| 103 | + INTEL:*_*_*_CC_FLAGS = /D VTPM_FEATURE_ENABLED |
| 104 | + GCC:*_*_*_CC_FLAGS = -D VTPM_FEATURE_ENABLED |
| 105 | + |
93 | 106 | [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
|
94 | 107 | GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
|
95 | 108 | XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
|
|
183 | 196 | DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
|
184 | 197 |
|
185 | 198 | IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
|
186 |
| - OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf |
| 199 | + OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibFull.inf |
187 | 200 | RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
|
188 | 201 |
|
189 | 202 | !if $(SECURE_BOOT_ENABLE) == TRUE
|
|
217 | 230 | TdxLib|MdePkg/Library/TdxLib/TdxLib.inf
|
218 | 231 | TdxMailboxLib|OvmfPkg/Library/TdxMailboxLib/TdxMailboxLib.inf
|
219 | 232 | PlatformInitLib|OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf
|
| 233 | + PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf |
220 | 234 |
|
221 | 235 | [LibraryClasses.common.SEC]
|
222 | 236 | TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf
|
|
526 | 540 |
|
527 | 541 | gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
|
528 | 542 |
|
| 543 | + gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00} |
| 544 | + |
| 545 | + # Support SHA256 SHA384 SHA512 |
| 546 | + gEfiSecurityPkgTokenSpaceGuid.PcdTpm2HashMask|0 |
| 547 | + |
529 | 548 | ################################################################################
|
530 | 549 | #
|
531 | 550 | # Components Section - list of all EDK II Modules needed by this Platform.
|
|
541 | 560 | <LibraryClasses>
|
542 | 561 | NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
|
543 | 562 | NULL|OvmfPkg/IntelTdx/TdxHelperLib/SecTdxHelperLib.inf
|
544 |
| - BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SecCryptLib.inf |
| 563 | + BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf |
| 564 | + MemEncryptTdxLib|OvmfPkg/Library/BaseMemEncryptTdxLib/SecBaseMemEncryptTdxLib.inf |
| 565 | + Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf |
| 566 | + Tpm2DeviceLib|OvmfPkg/Tcg/Tpm2DeviceLibVTpmTd/Tpm2DeviceLibVTpmTdSec.inf |
| 567 | + !include ../VmmSpdmLibs.dsc.inc |
| 568 | + VmmSpdmVTpmCommunicatorLib|OvmfPkg/Library/VmmSpdmVTpm/VmmSpdmVTpmCommunicatorLibSecPei.inf |
545 | 569 | }
|
546 | 570 |
|
547 | 571 | #
|
|
753 | 777 | OvmfPkg/IoMmuDxe/IoMmuDxe.inf
|
754 | 778 |
|
755 | 779 | OvmfPkg/TdxDxe/TdxDxe.inf
|
| 780 | + OvmfPkg/Tcg/VmmSpdmTunnel/VmmSpdmTunnelDxe.inf { |
| 781 | + <LibraryClasses> |
| 782 | + !include ../VmmSpdmLibs.dsc.inc |
| 783 | + VmmSpdmVTpmCommunicatorLib|OvmfPkg/Library/VmmSpdmVTpm/VmmSpdmVTpmCommunicatorLibDxe.inf |
| 784 | + } |
756 | 785 |
|
757 | 786 | #
|
758 | 787 | # Variable driver stack (non-SMM)
|
|
776 | 805 | HashLib|SecurityPkg/Library/HashLibTdx/HashLibTdx.inf
|
777 | 806 | NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
|
778 | 807 | }
|
| 808 | + |
| 809 | + # |
| 810 | + # TCG2 Measurement Protocol |
| 811 | + # |
| 812 | + SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf { |
| 813 | + <LibraryClasses> |
| 814 | + Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf |
| 815 | + Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibQemu/DxeTcg2PhysicalPresenceLib.inf |
| 816 | + Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf |
| 817 | + NULL|OvmfPkg/Tcg/Tpm2DeviceLibVTpmTd/Tpm2InstanceLibVTpmTd.inf |
| 818 | + !include ../VmmSpdmLibs.dsc.inc |
| 819 | + HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf |
| 820 | + NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf |
| 821 | + NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf |
| 822 | + NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf |
| 823 | + NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf |
| 824 | + NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf |
| 825 | + } |
0 commit comments