aboutsummaryrefslogtreecommitdiff
path: root/tools/binman/control.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-01-07 14:07:12 -0700
committerSimon Glass <sjg@chromium.org>2023-01-18 11:50:01 -0700
commitc8c9f3108a7b8c3ff391f60b184fa372ae4f32f2 (patch)
tree326f5e1078f7b02783d0f0832a60ebad62a96654 /tools/binman/control.py
parent23ab4e0054783e619fcf39a50faf9c08c2e18fa5 (diff)
downloadu-boot-c8c9f3108a7b8c3ff391f60b184fa372ae4f32f2.zip
u-boot-c8c9f3108a7b8c3ff391f60b184fa372ae4f32f2.tar.gz
u-boot-c8c9f3108a7b8c3ff391f60b184fa372ae4f32f2.tar.bz2
binman: Support optional entries
Support entries which can be optional depending on their contents. This allows special entry types which appear in the image only when needed. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/control.py')
-rw-r--r--tools/binman/control.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/binman/control.py b/tools/binman/control.py
index 964c698..0722538 100644
--- a/tools/binman/control.py
+++ b/tools/binman/control.py
@@ -552,6 +552,7 @@ def ProcessImage(image, update_fdt, write_map, get_contents=True,
image.SetAllowMissing(allow_missing)
image.SetAllowFakeBlob(allow_fake_blobs)
image.GetEntryContents()
+ image.drop_absent()
image.GetEntryOffsets()
# We need to pack the entries to figure out where everything