binman: Support writing symbols inside a mkimage image

Add support for writing symbols and determining the assumed position of
binaries inside a mkimage image. This is useful as an example for other
entry types which might want to do the same thing.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass 2023-07-18 07:24:08 -06:00
parent 696f2b73d6
commit 23b96e920b
4 changed files with 127 additions and 2 deletions

View file

@ -1314,8 +1314,6 @@ features to produce new behaviours.
"""
data = b''
for entry in entries:
# First get the input data and put it in a file
entry.ObtainContents(fake_size=fake_size)
data += entry.GetData()
uniq = self.GetUniqueName()
fname = tools.get_output_filename(f'{prefix}.{uniq}')