mirror of https://github.com/acidanthera/audk.git
BaseTools: Fix the regression bug to build single module
The bug is introduced by 1b8eca to collect single module's build time. Now the fix solution is copied from Platform build. Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
ce9aaba64e
commit
119d8c42ab
|
@ -1832,6 +1832,18 @@ class Build():
|
|||
if self.ModuleFile.Dir == Module.Dir and self.ModuleFile.File == Module.File:
|
||||
Ma = ModuleAutoGen(Wa, Module, BuildTarget, ToolChain, Arch, self.PlatformFile)
|
||||
if Ma == None: continue
|
||||
# Not to auto-gen for targets 'clean', 'cleanlib', 'cleanall', 'run', 'fds'
|
||||
if self.Target not in ['clean', 'cleanlib', 'cleanall', 'run', 'fds']:
|
||||
# for target which must generate AutoGen code and makefile
|
||||
if not self.SkipAutoGen or self.Target == 'genc':
|
||||
Ma.CreateCodeFile(True)
|
||||
if self.Target == "genc":
|
||||
continue
|
||||
|
||||
if not self.SkipAutoGen or self.Target == 'genmake':
|
||||
Ma.CreateMakeFile(True)
|
||||
if self.Target == "genmake":
|
||||
continue
|
||||
MaList.append(Ma)
|
||||
self.BuildModules.append(Ma)
|
||||
self.AutoGenTime += int(round((time.time() - AutoGenStart)))
|
||||
|
|
Loading…
Reference in New Issue