diff options
author | Simon Glass <sjg@chromium.org> | 2018-11-06 15:21:33 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-11-20 19:14:22 -0700 |
commit | 4b6dbaa3073adb24f8c67f89d0f70dbcf00808b9 (patch) | |
tree | d4ace0f3b805257d398331ede5938f24d45b8773 /tools | |
parent | 26cc8fccc61a6846e763c3cf36c28bc547308bbe (diff) | |
download | u-boot-4b6dbaa3073adb24f8c67f89d0f70dbcf00808b9.tar.gz u-boot-4b6dbaa3073adb24f8c67f89d0f70dbcf00808b9.tar.xz u-boot-4b6dbaa3073adb24f8c67f89d0f70dbcf00808b9.zip |
binman: Set the pathname correctly for ELF files
At present, stripped files don't have the right pathname which means that
blob compression cannot be used. Fix this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/binman/etype/u_boot_elf.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/binman/etype/u_boot_elf.py b/tools/binman/etype/u_boot_elf.py index 134b6cc15b..f83860dc0a 100644 --- a/tools/binman/etype/u_boot_elf.py +++ b/tools/binman/etype/u_boot_elf.py @@ -30,9 +30,8 @@ class Entry_u_boot_elf(Entry_blob): out_fname = tools.GetOutputFilename('%s.stripped' % uniq) tools.WriteFile(out_fname, tools.ReadFile(self._pathname)) tools.Run('strip', out_fname) - self.SetContents(tools.ReadFile(out_fname)) - else: - self.SetContents(tools.ReadFile(self._pathname)) + self._pathname = out_fname + Entry_blob.ReadBlobContents(self) return True def GetDefaultFilename(self): |