summaryrefslogtreecommitdiffstats
path: root/BaseTools
diff options
context:
space:
mode:
authorYonghong Zhu <yonghong.zhu@intel.com>2018-03-01 00:07:48 +0800
committerLiming Gao <liming.gao@intel.com>2018-03-04 09:25:05 +0800
commit60a79a8871bd08918c906d2de9c572f9764e1857 (patch)
treeb3e022474ca770095a950d4aec446b0da3cfbfc0 /BaseTools
parent5ee2485fc53b5c12710fbaa9b7e7a48754b3d93d (diff)
downloadedk2-60a79a8871bd08918c906d2de9c572f9764e1857.tar.gz
edk2-60a79a8871bd08918c906d2de9c572f9764e1857.tar.bz2
edk2-60a79a8871bd08918c906d2de9c572f9764e1857.zip
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> (cherry picked from commit cd49821608f7eb867b8351c7a0cd3ed4dd2d563d)
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Source/Python/build/build.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Python/build/build.py
index 14a2ceb4bc..bb130a02cc 100644
--- a/BaseTools/Source/Python/build/build.py
+++ b/BaseTools/Source/Python/build/build.py
@@ -1865,13 +1865,21 @@ class Build():
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':
+ self.Progress.Start("Generating code")
Ma.CreateCodeFile(True)
+ self.Progress.Stop("done!")
+ if self.Target == "genc":
+ return True
if not self.SkipAutoGen or self.Target == 'genmake':
+ self.Progress.Start("Generating makefile")
if CmdListDict and self.Fdf and (Module.File, Arch) in CmdListDict:
Ma.CreateMakeFile(True, CmdListDict[Module.File, Arch])
del CmdListDict[Module.File, Arch]
else:
Ma.CreateMakeFile(True)
+ self.Progress.Stop("done!")
+ if self.Target == "genmake":
+ return True
self.BuildModules.append(Ma)
self.AutoGenTime += int(round((time.time() - AutoGenStart)))
MakeStart = time.time()