[PATCH 07/10] binman: Support reading an image with entry args

Simon Glass sjg at chromium.org
Sat Jan 23 18:27:05 CET 2021


Normally when an entry is created, any entry arguments it has are required
to be provided, so it can actually generate its contents correctly.

However when an existing image is read, Entry objects are created for each
of the entries in the image. This happens as part of the process of
reading the image into binman.

In this case we don't need the entry arguments, since we do not intend to
regenerate the entries, or at least not unless requested. So there is no
sense in reporting an error for missing entry arguments.

Add a new property for the Image to handle this case. Update the error
reporting to be conditional on this property.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 tools/binman/entry.py                    |  3 +--
 tools/binman/etype/section.py            | 15 +++++++++++++++
 tools/binman/ftest.py                    | 19 +++++++++++++++++++
 tools/binman/image.py                    | 10 ++++++++--
 tools/binman/test/188_image_entryarg.dts | 21 +++++++++++++++++++++
 5 files changed, 64 insertions(+), 4 deletions(-)
 create mode 100644 tools/binman/test/188_image_entryarg.dts

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list