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>
File = Item.Target.Path.replace('\\', '/').strip('/').replace(DebugDir, '').strip('/')\r
if File not in self.OutputFile:\r
self.OutputFile.append(File)\r
+ if os.path.isabs(File):\r
+ File = File.replace('\\', '/').strip('/').replace(OutputDir, '').strip('/')\r
if Item.Target.Ext.lower() == '.aml':\r
AsBuiltInfDict['binary_item'] += ['ASL|' + File]\r
elif Item.Target.Ext.lower() == '.acpi':\r