]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Fix a bug for single module build with GenC/GenMake option
authorYonghong Zhu <yonghong.zhu@intel.com>
Fri, 17 Nov 2017 03:29:19 +0000 (11:29 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Mon, 20 Nov 2017 12:53:14 +0000 (20:53 +0800)
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>
BaseTools/Source/Python/build/build.py

index 4f73bba3bdf1efe55e30f9bf336b392637b453f6..53f12457f8c3d24ac7b2818601fb335d15102d3b 100644 (file)
@@ -1837,13 +1837,8 @@ class Build():
                                 # for target which must generate AutoGen code and makefile\r
                                 if not self.SkipAutoGen or self.Target == 'genc':\r
                                     Ma.CreateCodeFile(True)\r
-                                if self.Target == "genc":\r
-                                    continue\r
-\r
                                 if not self.SkipAutoGen or self.Target == 'genmake':\r
                                     Ma.CreateMakeFile(True)\r
-                                if self.Target == "genmake":\r
-                                    continue\r
                             MaList.append(Ma)\r
                             self.BuildModules.append(Ma)\r
                     self.AutoGenTime += int(round((time.time() - AutoGenStart)))\r