[PATCH v5 09/20] binman: Convert mkimage to Entry_section

Simon Glass sjg at chromium.org
Sun Jul 23 15:23:39 CEST 2023


From: Marek Vasut <marex at denx.de>

This is needed to handle mkimage with inner section located itself in a
section.

Signed-off-by: Marek Vasut <marex at denx.de>
Use BuildSectionData() instead of ObtainContents(), add tests and a few
other minor fixes:
Signed-off-by: Simon Glass <sjg at chromium.org>
---

Changes in v5:
- Drop method implementations for which the entry_Section one is enough

Changes in v3:
- Fix up some tests which now need SPL and TPL
- Avoid calling ObtainContents() when not needed

Changes in v2:
- Drop now-unnecessary methods in mkimage etype

 tools/binman/entry.py                     |   6 +-
 tools/binman/etype/mkimage.py             | 113 ++++++++--------------
 tools/binman/ftest.py                     |  67 ++++++++++++-
 tools/binman/test/283_mkimage_special.dts |  24 +++++
 4 files changed, 130 insertions(+), 80 deletions(-)
 create mode 100644 tools/binman/test/283_mkimage_special.dts

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list