]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Correct Target Path in CodaTargetList replace Path
authorYunhua Feng <yunhuax.feng@intel.com>
Wed, 3 Jan 2018 04:36:51 +0000 (12:36 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Wed, 10 Jan 2018 03:39:47 +0000 (11:39 +0800)
Target Path in CodaTargetList is DebugDir path, correct replace
path with DebugDir

Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
BaseTools/Source/Python/AutoGen/AutoGen.py

index 758355c366969d308db42a5762f0d7843d712b29..0f7454f55a7ab7624e264916b8742cc9880a7a9b 100644 (file)
@@ -4148,8 +4148,9 @@ class ModuleAutoGen(AutoGen):
             AsBuiltInfDict['module_pi_specification_version'] += [self.Specification['PI_SPECIFICATION_VERSION']]\r
 \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(OutputDir, '').strip('/')\r
+            File = Item.Target.Path.replace('\\', '/').strip('/').replace(DebugDir, '').strip('/')\r
             if File not in self.OutputFile:\r
                 self.OutputFile.append(File)\r
             if Item.Target.Ext.lower() == '.aml':\r