summaryrefslogtreecommitdiff
path: root/tools/binman/entry.py
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2023-07-18 07:23:58 -0600
committerSimon Glass <[email protected]>2023-07-20 14:10:58 -0600
commitfadad3a64a12cf279d31088aebc45806ec86fb4e (patch)
tree97dc712312e3ea7a12d49be633fd1d558377587e /tools/binman/entry.py
parent20a317fb75f2cbd03cd8d2f8e65bab5faf6abbb4 (diff)
binman: Convert mkimage to Entry_section
This is needed to handle mkimage with inner section located itself in a section. Signed-off-by: Marek Vasut <[email protected]> Use BuildSectionData() instead of ObtainContents(), add tests and a few other minor fixes: Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'tools/binman/entry.py')
-rw-r--r--tools/binman/entry.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/binman/entry.py b/tools/binman/entry.py
index f20f32213a9..0d4cb94f700 100644
--- a/tools/binman/entry.py
+++ b/tools/binman/entry.py
@@ -1314,10 +1314,8 @@ features to produce new behaviours.
"""
data = b''
for entry in entries:
- # First get the input data and put it in a file. If not available,
- # try later.
- if not entry.ObtainContents(fake_size=fake_size):
- return None, None, None
+ # 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}')