Skip to content

Commit

Permalink
binman: Set the pathname correctly for ELF files
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
sjg20 committed Nov 21, 2018
1 parent 26cc8fc commit 4b6dbaa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/binman/etype/u_boot_elf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ def ReadBlobContents(self):
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):
Expand Down

0 comments on commit 4b6dbaa

Please sign in to comment.