BaseTools: Fix the bug for single module build with GenC/GenMake
copy the same logic from _BuildPa() function. 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:
@ -1865,13 +1865,21 @@ class Build():
|
|||||||
if self.Target not in ['clean', 'cleanlib', 'cleanall', 'run', 'fds']:
|
if self.Target not in ['clean', 'cleanlib', 'cleanall', 'run', 'fds']:
|
||||||
# for target which must generate AutoGen code and makefile
|
# for target which must generate AutoGen code and makefile
|
||||||
if not self.SkipAutoGen or self.Target == 'genc':
|
if not self.SkipAutoGen or self.Target == 'genc':
|
||||||
|
self.Progress.Start("Generating code")
|
||||||
Ma.CreateCodeFile(True)
|
Ma.CreateCodeFile(True)
|
||||||
|
self.Progress.Stop("done!")
|
||||||
|
if self.Target == "genc":
|
||||||
|
return True
|
||||||
if not self.SkipAutoGen or self.Target == 'genmake':
|
if not self.SkipAutoGen or self.Target == 'genmake':
|
||||||
|
self.Progress.Start("Generating makefile")
|
||||||
if CmdListDict and self.Fdf and (Module.File, Arch) in CmdListDict:
|
if CmdListDict and self.Fdf and (Module.File, Arch) in CmdListDict:
|
||||||
Ma.CreateMakeFile(True, CmdListDict[Module.File, Arch])
|
Ma.CreateMakeFile(True, CmdListDict[Module.File, Arch])
|
||||||
del CmdListDict[Module.File, Arch]
|
del CmdListDict[Module.File, Arch]
|
||||||
else:
|
else:
|
||||||
Ma.CreateMakeFile(True)
|
Ma.CreateMakeFile(True)
|
||||||
|
self.Progress.Stop("done!")
|
||||||
|
if self.Target == "genmake":
|
||||||
|
return True
|
||||||
self.BuildModules.append(Ma)
|
self.BuildModules.append(Ma)
|
||||||
self.AutoGenTime += int(round((time.time() - AutoGenStart)))
|
self.AutoGenTime += int(round((time.time() - AutoGenStart)))
|
||||||
MakeStart = time.time()
|
MakeStart = time.time()
|
||||||
|
Reference in New Issue
Block a user