BaseTools: use set instead of list for a variable to be used with in
Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
committed by
Yonghong Zhu
parent
066c71544e
commit
1563349a96
@@ -1450,13 +1450,10 @@ class PlatformAutoGen(AutoGen):
|
|||||||
self._NonDynaPcdList_.remove (self._NonDynaPcdList_[Index])
|
self._NonDynaPcdList_.remove (self._NonDynaPcdList_[Index])
|
||||||
PcdFromModule.Pending = False
|
PcdFromModule.Pending = False
|
||||||
self._NonDynaPcdList_.append (PcdFromModule)
|
self._NonDynaPcdList_.append (PcdFromModule)
|
||||||
# Parse the DynamicEx PCD from the AsBuild INF module list of FDF.
|
DscModuleSet = {os.path.normpath(ModuleInf.Path) for ModuleInf in self.Platform.Modules}
|
||||||
DscModuleList = []
|
|
||||||
for ModuleInf in self.Platform.Modules.keys():
|
|
||||||
DscModuleList.append (os.path.normpath(ModuleInf.Path))
|
|
||||||
# add the PCD from modules that listed in FDF but not in DSC to Database
|
# add the PCD from modules that listed in FDF but not in DSC to Database
|
||||||
for InfName in FdfModuleList:
|
for InfName in FdfModuleList:
|
||||||
if InfName not in DscModuleList:
|
if InfName not in DscModuleSet:
|
||||||
InfClass = PathClass(InfName)
|
InfClass = PathClass(InfName)
|
||||||
M = self.BuildDatabase[InfClass, self.Arch, self.BuildTarget, self.ToolChain]
|
M = self.BuildDatabase[InfClass, self.Arch, self.BuildTarget, self.ToolChain]
|
||||||
# If a module INF in FDF but not in current arch's DSC module list, it must be module (either binary or source)
|
# If a module INF in FDF but not in current arch's DSC module list, it must be module (either binary or source)
|
||||||
|
Reference in New Issue
Block a user