mirror of https://github.com/acidanthera/audk.git
BaseTools: Enhance binary file in [Binaries] section use relative path
Enhance the binary file in Asbuilt inf file [Binaries] section use relative path. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
e74cea4c7b
commit
5e2c0ecd0b
|
@ -4153,6 +4153,8 @@ class ModuleAutoGen(AutoGen):
|
||||||
File = Item.Target.Path.replace('\\', '/').strip('/').replace(DebugDir, '').strip('/')
|
File = Item.Target.Path.replace('\\', '/').strip('/').replace(DebugDir, '').strip('/')
|
||||||
if File not in self.OutputFile:
|
if File not in self.OutputFile:
|
||||||
self.OutputFile.append(File)
|
self.OutputFile.append(File)
|
||||||
|
if os.path.isabs(File):
|
||||||
|
File = File.replace('\\', '/').strip('/').replace(OutputDir, '').strip('/')
|
||||||
if Item.Target.Ext.lower() == '.aml':
|
if Item.Target.Ext.lower() == '.aml':
|
||||||
AsBuiltInfDict['binary_item'] += ['ASL|' + File]
|
AsBuiltInfDict['binary_item'] += ['ASL|' + File]
|
||||||
elif Item.Target.Ext.lower() == '.acpi':
|
elif Item.Target.Ext.lower() == '.acpi':
|
||||||
|
|
Loading…
Reference in New Issue