]> git.proxmox.com Git - mirror_edk2.git/commitdiff
SecurityPkg Tcg2Dxe: Add Variable Arch protocol dependency
authorLiming Gao <liming.gao@intel.com>
Wed, 16 Oct 2019 23:46:17 +0000 (07:46 +0800)
committerLiming Gao <liming.gao@intel.com>
Fri, 18 Oct 2019 00:41:50 +0000 (08:41 +0800)
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>
SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf

index c41c50a7a26cc4678a82535a26cfbbfcd25e03f7..0127a31e970b7e9bdcf7c691bdb32fc5b97f27c3 100644 (file)
   gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableLasa                        ## PRODUCES\r
 \r
 [Depex]\r
-  TRUE\r
+  # According to PcdTpm2AcpiTableRev definition in SecurityPkg.dec\r
+  # This PCD should be configured at DynamicHii or DynamicHiiEx.\r
+  # So, this PCD read operation depends on GetVariable service.\r
+  # Add VariableArch protocol dependency to make sure PCD read works.\r
+  gEfiVariableArchProtocolGuid\r
 \r
 [UserExtensions.TianoCore."ExtraFiles"]\r
   Tcg2DxeExtra.uni\r