]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Fix a bug to use module's Name attribute as compare
authorYonghong Zhu <yonghong.zhu@intel.com>
Mon, 9 Oct 2017 07:59:45 +0000 (15:59 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Tue, 10 Oct 2017 02:32:07 +0000 (10:32 +0800)
Fix a bug to use module's Name attribute as compare for single module
build. ModuleFile.File can't be used to compare INF file, because it
is the relative path.

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 13d8e503b11d41bc2eba3170d2dcb4ce3e9c56e9..4f73bba3bdf1efe55e30f9bf336b392637b453f6 100644 (file)
@@ -1829,7 +1829,7 @@ class Build():
                     GlobalData.gGlobalDefines['ARCH'] = Arch\r
                     Pa = PlatformAutoGen(Wa, self.PlatformFile, BuildTarget, ToolChain, Arch)\r
                     for Module in Pa.Platform.Modules:\r
-                        if self.ModuleFile.Dir == Module.Dir and self.ModuleFile.File == Module.File:\r
+                        if self.ModuleFile.Dir == Module.Dir and self.ModuleFile.Name == Module.Name:\r
                             Ma = ModuleAutoGen(Wa, Module, BuildTarget, ToolChain, Arch, self.PlatformFile)\r
                             if Ma == None: continue\r
                             # Not to auto-gen for targets 'clean', 'cleanlib', 'cleanall', 'run', 'fds'\r