mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 21:51:31 +00:00
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>
This commit is contained in:
parent
26cc8fccc6
commit
4b6dbaa307
1 changed files with 2 additions and 3 deletions
|
@ -30,9 +30,8 @@ class Entry_u_boot_elf(Entry_blob):
|
||||||
out_fname = tools.GetOutputFilename('%s.stripped' % uniq)
|
out_fname = tools.GetOutputFilename('%s.stripped' % uniq)
|
||||||
tools.WriteFile(out_fname, tools.ReadFile(self._pathname))
|
tools.WriteFile(out_fname, tools.ReadFile(self._pathname))
|
||||||
tools.Run('strip', out_fname)
|
tools.Run('strip', out_fname)
|
||||||
self.SetContents(tools.ReadFile(out_fname))
|
self._pathname = out_fname
|
||||||
else:
|
Entry_blob.ReadBlobContents(self)
|
||||||
self.SetContents(tools.ReadFile(self._pathname))
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def GetDefaultFilename(self):
|
def GetDefaultFilename(self):
|
||||||
|
|
Loading…
Add table
Reference in a new issue