Skip to content
Snippets Groups Projects
Commit 4b6dbaa3 authored by Simon Glass's avatar Simon Glass
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
parent 26cc8fcc
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment