]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/AutoGen/PlatformAutoGen.py
BaseTools: Fixed issue of incorrect Module Unique Name
[mirror_edk2.git] / BaseTools / Source / Python / AutoGen / PlatformAutoGen.py
index 4abfc6c29d1b803e23c91d76280c252fa6fa29f7..dd629ba2fac237575d3bd2322726beea5d2628c7 100644 (file)
@@ -1366,14 +1366,15 @@ class PlatformAutoGen(AutoGen):
                 UniqueName[Module.BaseName] = set()\r
             UniqueName[Module.BaseName].add((self.ModuleGuid(Module),Module.MetaFile))\r
         for module_paths in ModuleNameDict.values():\r
-            if len(module_paths) > 1 and len(set(module_paths))>1:\r
+            if len(set(module_paths))>1:\r
                 samemodules = list(set(module_paths))\r
                 EdkLogger.error("build", FILE_DUPLICATED, 'Modules have same BaseName and FILE_GUID:\n'\r
                                     '  %s\n  %s' % (samemodules[0], samemodules[1]))\r
         for name in UniqueName:\r
             Guid_Path = UniqueName[name]\r
             if len(Guid_Path) > 1:\r
-                retVal[name] = '%s_%s' % (name,Guid_Path.pop()[0])\r
+                for guid,mpath in Guid_Path:\r
+                    retVal[(name,mpath)] = '%s_%s' % (name,guid)\r
         return retVal\r
     ## Expand * in build option key\r
     #\r