BaseTools: Correct Target Path in CodaTargetList replace Path
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>
(cherry picked from commit c7c5a6c4f7
)
This commit is contained in:
committed by
Yonghong Zhu
parent
53c9a3c746
commit
42871887be
@ -4148,8 +4148,9 @@ class ModuleAutoGen(AutoGen):
|
||||
AsBuiltInfDict['module_pi_specification_version'] += [self.Specification['PI_SPECIFICATION_VERSION']]
|
||||
|
||||
OutputDir = self.OutputDir.replace('\\', '/').strip('/')
|
||||
DebugDir = self.DebugDir.replace('\\', '/').strip('/')
|
||||
for Item in self.CodaTargetList:
|
||||
File = Item.Target.Path.replace('\\', '/').strip('/').replace(OutputDir, '').strip('/')
|
||||
File = Item.Target.Path.replace('\\', '/').strip('/').replace(DebugDir, '').strip('/')
|
||||
if File not in self.OutputFile:
|
||||
self.OutputFile.append(File)
|
||||
if Item.Target.Ext.lower() == '.aml':
|
||||
|
Reference in New Issue
Block a user