diff options
author | Carsey, Jaben </o=Intel/ou=Americas01/cn=Workers/cn=Carsey, Jaben> | 2018-04-11 07:17:21 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-04-17 20:48:52 +0800 |
commit | 1530ceda0503908289af9ec47357327db62e52cf (patch) | |
tree | 037669d88c17b542edc3f0085bd3b17c61b4b355 /BaseTools | |
parent | 4d3b9389e7f22222b76b874fbef8dd4cf2c8c7ce (diff) | |
download | edk2-1530ceda0503908289af9ec47357327db62e52cf.tar.gz edk2-1530ceda0503908289af9ec47357327db62e52cf.tar.bz2 edk2-1530ceda0503908289af9ec47357327db62e52cf.zip |
BaseTools: no need to save the data
It's never accessed.
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>
Diffstat (limited to 'BaseTools')
-rw-r--r-- | BaseTools/Source/Python/AutoGen/AutoGen.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/BaseTools/Source/Python/AutoGen/AutoGen.py b/BaseTools/Source/Python/AutoGen/AutoGen.py index dbc9f893c2..6ef922d401 100644 --- a/BaseTools/Source/Python/AutoGen/AutoGen.py +++ b/BaseTools/Source/Python/AutoGen/AutoGen.py @@ -361,13 +361,12 @@ class WorkspaceAutoGen(AutoGen): # but the path (self.MetaFile.Path) is the real path
for key in self.FdfProfile.InfDict:
if key == 'ArchTBD':
- Platform_cache = {}
MetaFile_cache = {}
for Arch in self.ArchList:
- Platform_cache[Arch] = self.BuildDatabase[self.MetaFile, Arch, Target, Toolchain]
+ Current_Platform_cache = self.BuildDatabase[self.MetaFile, Arch, Target, Toolchain]
MetaFile_cache[Arch] = set()
- for Pkey in Platform_cache[Arch].Modules:
- MetaFile_cache[Arch].add(Platform_cache[Arch].Modules[Pkey].MetaFile)
+ for Pkey in Current_Platform_cache.Modules:
+ MetaFile_cache[Arch].add(Current_Platform_cache.Modules[Pkey].MetaFile)
for Inf in self.FdfProfile.InfDict[key]:
ModuleFile = PathClass(NormPath(Inf), GlobalData.gWorkspace, Arch)
for Arch in self.ArchList:
|