summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFeng, YunhuaX </o=Intel/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Feng, YunhuaX4e1>2018-03-16 15:03:16 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-03-19 10:05:38 +0800
commit61c0fb297d43e894a3a20d8141c46ecf45d1cba5 (patch)
tree68a4e83d110f5dc948d563e9f512f2aa93c6fd7c
parentca0b3a0ef28eabcaf296f644d64c0a90598b4a9b (diff)
downloadedk2-61c0fb297d43e894a3a20d8141c46ecf45d1cba5.tar.gz
edk2-61c0fb297d43e894a3a20d8141c46ecf45d1cba5.tar.bz2
edk2-61c0fb297d43e894a3a20d8141c46ecf45d1cba5.zip
BaseTools: --hash --binary-destination generate wrong binary path
Option --hash --binary-destination generate Binaries section in the inf file, but the path of ASL file is begin with Output directory, so need replace Output directory with '', will get the file name RamDisk.aml Incorrect AML file path in inf file on linux: [Binaries.X64] PE32|RamDiskDxe.efi ASL|home/tiano/Desktop/hash/edk2/Build/OvmfX64/RELEASE_GCC5/X64 /MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe/OUTPUT/RamDisk.aml DXE_DEPEX|RamDiskDxe.depex BIN|RamDiskDxeOffset.bin 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: Liming Gao <liming.gao@intel.com> (cherry picked from commit 90456c3c06d9c370b48417754ece2fb8252da5f8)
-rw-r--r--BaseTools/Source/Python/AutoGen/AutoGen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/AutoGen/AutoGen.py b/BaseTools/Source/Python/AutoGen/AutoGen.py
index 439e360955..95e3e912b1 100644
--- a/BaseTools/Source/Python/AutoGen/AutoGen.py
+++ b/BaseTools/Source/Python/AutoGen/AutoGen.py
@@ -4064,7 +4064,7 @@ class ModuleAutoGen(AutoGen):
OutputDir = self.OutputDir.replace('\\', '/').strip('/')
DebugDir = self.DebugDir.replace('\\', '/').strip('/')
for Item in self.CodaTargetList:
- File = Item.Target.Path.replace('\\', '/').strip('/').replace(DebugDir, '').strip('/')
+ File = Item.Target.Path.replace('\\', '/').strip('/').replace(DebugDir, '').replace(OutputDir, '').strip('/')
if File not in self.OutputFile:
self.OutputFile.append(File)
if os.path.isabs(File):