]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/AutoGen/AutoGen.py
BaseTools: --hash --binary-destination generate wrong binary path
[mirror_edk2.git] / BaseTools / Source / Python / AutoGen / AutoGen.py
index 439e360955a303ca4f2b3872ff92575af513b9b8..95e3e912b168a48362955e93c7c10ad73e540969 100644 (file)
@@ -4064,7 +4064,7 @@ class ModuleAutoGen(AutoGen):
         OutputDir = self.OutputDir.replace('\\', '/').strip('/')\r
         DebugDir = self.DebugDir.replace('\\', '/').strip('/')\r
         for Item in self.CodaTargetList:\r
         OutputDir = self.OutputDir.replace('\\', '/').strip('/')\r
         DebugDir = self.DebugDir.replace('\\', '/').strip('/')\r
         for Item in self.CodaTargetList:\r
-            File = Item.Target.Path.replace('\\', '/').strip('/').replace(DebugDir, '').strip('/')\r
+            File = Item.Target.Path.replace('\\', '/').strip('/').replace(DebugDir, '').replace(OutputDir, '').strip('/')\r
             if File not in self.OutputFile:\r
                 self.OutputFile.append(File)\r
             if os.path.isabs(File):\r
             if File not in self.OutputFile:\r
                 self.OutputFile.append(File)\r
             if os.path.isabs(File):\r