From b8c6c545385da1fec9f0851e2d4f1b769ff121af Mon Sep 17 00:00:00 2001 From: Yonghong Zhu Date: Fri, 17 Nov 2017 11:29:19 +0800 Subject: [PATCH] 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 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yonghong Zhu Reviewed-by: Liming Gao --- BaseTools/Source/Python/build/build.py | 5 ----- 1 file changed, 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))) -- 2.39.2