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>
This commit is contained in:
@ -1837,13 +1837,8 @@ class Build():
|
|||||||
# 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':
|
||||||
Ma.CreateCodeFile(True)
|
Ma.CreateCodeFile(True)
|
||||||
if self.Target == "genc":
|
|
||||||
continue
|
|
||||||
|
|
||||||
if not self.SkipAutoGen or self.Target == 'genmake':
|
if not self.SkipAutoGen or self.Target == 'genmake':
|
||||||
Ma.CreateMakeFile(True)
|
Ma.CreateMakeFile(True)
|
||||||
if self.Target == "genmake":
|
|
||||||
continue
|
|
||||||
MaList.append(Ma)
|
MaList.append(Ma)
|
||||||
self.BuildModules.append(Ma)
|
self.BuildModules.append(Ma)
|
||||||
self.AutoGenTime += int(round((time.time() - AutoGenStart)))
|
self.AutoGenTime += int(round((time.time() - AutoGenStart)))
|
||||||
|
Reference in New Issue
Block a user