]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/build/build.py
BaseTools: Fix a bug to use module's Name attribute as compare
[mirror_edk2.git] / 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