diff options
author | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-01-22 17:55:17 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-01-23 16:19:41 +0800 |
commit | 5e2c0ecd0bff48fb960ada1d138cbc382d4c1934 (patch) | |
tree | e2b2673d5ee8655032c9dfba19278a0d15bf8ab9 /BaseTools/Source/Python/AutoGen/AutoGen.py | |
parent | e74cea4c7b2ea013a4b08f22c0a4e7a4ad6e69bb (diff) | |
download | edk2-5e2c0ecd0bff48fb960ada1d138cbc382d4c1934.tar.gz edk2-5e2c0ecd0bff48fb960ada1d138cbc382d4c1934.tar.bz2 edk2-5e2c0ecd0bff48fb960ada1d138cbc382d4c1934.zip |
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>
Diffstat (limited to 'BaseTools/Source/Python/AutoGen/AutoGen.py')
-rw-r--r-- | BaseTools/Source/Python/AutoGen/AutoGen.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/AutoGen/AutoGen.py b/BaseTools/Source/Python/AutoGen/AutoGen.py index 157ecfb395..d4d90a902d 100644 --- a/BaseTools/Source/Python/AutoGen/AutoGen.py +++ b/BaseTools/Source/Python/AutoGen/AutoGen.py @@ -4153,6 +4153,8 @@ class ModuleAutoGen(AutoGen): File = Item.Target.Path.replace('\\', '/').strip('/').replace(DebugDir, '').strip('/')
if File not in self.OutputFile:
self.OutputFile.append(File)
+ if os.path.isabs(File):
+ File = File.replace('\\', '/').strip('/').replace(OutputDir, '').strip('/')
if Item.Target.Ext.lower() == '.aml':
AsBuiltInfDict['binary_item'] += ['ASL|' + File]
elif Item.Target.Ext.lower() == '.acpi':
|