summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/Include/Dsc/OvmfTpmComponentsPei.dsc.inc
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2022-12-09 21:03:46 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-12-09 14:07:21 +0000
commit5c25f6c67b12859e9df833aa9027be4ce2a3d942 (patch)
tree94ccc71da057781b9bbd548ceb4a8cd37d6f28d0 /OvmfPkg/Include/Dsc/OvmfTpmComponentsPei.dsc.inc
parent127e2c531556b968a51e8e2191d6e4580281856a (diff)
downloadedk2-5c25f6c67b12859e9df833aa9027be4ce2a3d942.tar.gz
edk2-5c25f6c67b12859e9df833aa9027be4ce2a3d942.tar.bz2
edk2-5c25f6c67b12859e9df833aa9027be4ce2a3d942.zip
OvmfPkg: move dsc and fdf include snippets for TPM support to subdirs
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Diffstat (limited to 'OvmfPkg/Include/Dsc/OvmfTpmComponentsPei.dsc.inc')
-rw-r--r--OvmfPkg/Include/Dsc/OvmfTpmComponentsPei.dsc.inc26
1 files changed, 26 insertions, 0 deletions
diff --git a/OvmfPkg/Include/Dsc/OvmfTpmComponentsPei.dsc.inc b/OvmfPkg/Include/Dsc/OvmfTpmComponentsPei.dsc.inc
new file mode 100644
index 0000000000..fa486eed82
--- /dev/null
+++ b/OvmfPkg/Include/Dsc/OvmfTpmComponentsPei.dsc.inc
@@ -0,0 +1,26 @@
+##
+# SPDX-License-Identifier: BSD-2-Clause-Patent
+##
+
+!if $(TPM2_ENABLE) == TRUE
+ OvmfPkg/Tcg/TpmMmioSevDecryptPei/TpmMmioSevDecryptPei.inf
+!if $(TPM1_ENABLE) == TRUE
+ OvmfPkg/Tcg/Tcg2Config/Tcg12ConfigPei.inf
+ SecurityPkg/Tcg/TcgPei/TcgPei.inf
+!else
+ OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
+!endif
+ 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