]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/GenFds/DepexSection.py
Sync BaseTools Trunk (version r2387) to EDKII main trunk.
[mirror_edk2.git] / BaseTools / Source / Python / GenFds / DepexSection.py
index 39678b23e96df52752caeedb2aa0e5cddcc036aa..b7b1ae7d93afdb61c93b2fc892d1002f1d92c9da 100644 (file)
@@ -39,7 +39,10 @@ class DepexSection (DepexSectionClassObject):
 \r
     def __FindGuidValue(self, CName):\r
         for Arch in GenFdsGlobalVariable.ArchList:\r
-            for PkgDb in GenFdsGlobalVariable.WorkSpace.PackageList:\r
+            for PkgDb in GenFdsGlobalVariable.WorkSpace.GetPackageList(GenFdsGlobalVariable.ActivePlatform, \r
+                                                                       Arch, \r
+                                                                       GenFdsGlobalVariable.TargetName, \r
+                                                                       GenFdsGlobalVariable.ToolChainTag):\r
                 if CName in PkgDb.Ppis:\r
                     return PkgDb.Ppis[CName]\r
                 if CName in PkgDb.Protocols:\r