Skip to content

Commit

Permalink
OvmfPkg: Update OvmfPkgX64.dsc to support TdTcg2Pei
Browse files Browse the repository at this point in the history
Add TdTcg2Pei in OvmfPkgX64.dsc in early PEI phase to
support CC measurement.

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>
  • Loading branch information
sunceping committed Nov 27, 2024
1 parent c0d6ce0 commit d8f1cee
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions OvmfPkg/OvmfPkgX64.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,18 @@
NULL|OvmfPkg/Library/MpInitLibDepLib/PeiMpInitLibUpDepLib.inf
}

#
# Cc Measurement PPI for Td guest
#
!if $(CC_MEASUREMENT_ENABLE) == TRUE
OvmfPkg/Tcg/TdTcg2Pei/TdTcg2Pei.inf {
<LibraryClasses>
NULL|OvmfPkg/IntelTdx/TdxHelperLib/PeiTdxHelperLib.inf
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
TdxLib|MdePkg/Library/TdxLib/TdxLib.inf
}
!endif

!include OvmfPkg/Include/Dsc/OvmfTpmComponentsPei.dsc.inc

#
Expand Down
3 changes: 3 additions & 0 deletions OvmfPkg/OvmfPkgX64.fdf
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ INF MdeModulePkg/Core/Pei/PeiMain.inf
INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
INF MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
INF MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
!if $(CC_MEASUREMENT_ENABLE) == TRUE
INF OvmfPkg/Tcg/TdTcg2Pei/TdTcg2Pei.inf
!endif
INF OvmfPkg/PlatformPei/PlatformPei.inf
INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
INF UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
Expand Down

0 comments on commit d8f1cee

Please sign in to comment.