summaryrefslogtreecommitdiffstats
path: root/SecurityPkg/Tcg/Tcg2Dxe
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2019-10-17 07:46:17 +0800
committerLiming Gao <liming.gao@intel.com>2019-10-18 08:41:50 +0800
commite026bb4c39a28ca9be5dc994c14bb21cc283c9e8 (patch)
tree1dd8d226c42914c23511294ea21236e6b2d910e0 /SecurityPkg/Tcg/Tcg2Dxe
parentb1c6e9f55e08843c0bec909abf87601579cea386 (diff)
downloadedk2-e026bb4c39a28ca9be5dc994c14bb21cc283c9e8.tar.gz
edk2-e026bb4c39a28ca9be5dc994c14bb21cc283c9e8.tar.bz2
edk2-e026bb4c39a28ca9be5dc994c14bb21cc283c9e8.zip
SecurityPkg Tcg2Dxe: Add Variable Arch protocol dependency
commit a7e2d20193e853020a1415c25b53280955055394 introduces the code to get PcdTpm2AcpiTableRev in the driver entry point. This PCD is designed as DynamicHii or DynamicHiiEx PCD. So, this PCD depends on Variable service. To make sure PcdTpm2AcpiTableRev value be got, add Variable service as Depex. Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Chao Zhang <chao.b.zhang@intel.com> Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: jiewen Yao <jiewen.yao@intel.com>
Diffstat (limited to 'SecurityPkg/Tcg/Tcg2Dxe')
-rw-r--r--SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf6
1 files changed, 5 insertions, 1 deletions
diff --git a/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf b/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf
index c41c50a7a2..0127a31e97 100644
--- a/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf
+++ b/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf
@@ -107,7 +107,11 @@
gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableLasa ## PRODUCES
[Depex]
- TRUE
+ # According to PcdTpm2AcpiTableRev definition in SecurityPkg.dec
+ # This PCD should be configured at DynamicHii or DynamicHiiEx.
+ # So, this PCD read operation depends on GetVariable service.
+ # Add VariableArch protocol dependency to make sure PCD read works.
+ gEfiVariableArchProtocolGuid
[UserExtensions.TianoCore."ExtraFiles"]
Tcg2DxeExtra.uni