summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/build/build.py
diff options
context:
space:
mode:
authorYonghong Zhu <yonghong.zhu@intel.com>2017-11-17 11:29:19 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2017-11-20 20:53:14 +0800
commitb8c6c545385da1fec9f0851e2d4f1b769ff121af (patch)
treeeed0b7d19c480ea7dfb84ee77fcd7a5b629c3dfb /BaseTools/Source/Python/build/build.py
parent5e9256cd7f54ffd6f1fd9837df92a911fcd2d7c2 (diff)
downloadedk2-b8c6c545385da1fec9f0851e2d4f1b769ff121af.tar.gz
edk2-b8c6c545385da1fec9f0851e2d4f1b769ff121af.tar.bz2
edk2-b8c6c545385da1fec9f0851e2d4f1b769ff121af.zip
BaseTools: Fix a bug for single module build with GenC/GenMake option
when build a single module with GenC/GenMake option, currently it will direct return after create Autogen code files, then it cause MaList is empty, which cause an incorrect error message is reported. 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>
Diffstat (limited to 'BaseTools/Source/Python/build/build.py')
-rw-r--r--BaseTools/Source/Python/build/build.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Python/build/build.py
index 4f73bba3bd..53f12457f8 100644
--- a/BaseTools/Source/Python/build/build.py
+++ b/BaseTools/Source/Python/build/build.py
@@ -1837,13 +1837,8 @@ class Build():
# 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)))