[PATCH v2 11/11] binman: Allow collection to use entries from other sections

Simon Glass sjg at chromium.org
Sun Aug 21 02:10:25 CEST 2022


At present the collections etype only works with entries in the same
section. This can be limiting, since in some cases the data may be inside
a subsection, e.g. if there are alignment constraints.

Add a function to find the entries in an etype and have it search
recursively. Make use of this for mkimage also.

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

(no changes since v1)

 tools/binman/entries.rst                   |  3 +++
 tools/binman/entry.py                      | 23 +++++++++++++++++
 tools/binman/etype/collection.py           |  3 +++
 tools/binman/etype/mkimage.py              |  7 ++++++
 tools/binman/etype/section.py              |  8 +++---
 tools/binman/ftest.py                      | 14 +++++++++++
 tools/binman/test/239_collection_other.dts | 29 ++++++++++++++++++++++
 tools/binman/test/240_mkimage_coll.dts     | 27 ++++++++++++++++++++
 8 files changed, 110 insertions(+), 4 deletions(-)
 create mode 100644 tools/binman/test/239_collection_other.dts
 create mode 100644 tools/binman/test/240_mkimage_coll.dts

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list