[PATCH 3/7] binman: Allow extracting a file in an alternative format

Simon Glass sjg at chromium.org
Sun Dec 5 20:46:05 CET 2021


In some cases entries encapsulate other data and it is useful to access
the data within. An example is the fdtmap which consists of a 16-byte
header, followed by a devicetree.

Provide an option to specify an alternative format when extracting files.
In the case of fdtmap, this is 'fdt', which produces an FDT file which can
be viewed with fdtdump.

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

 tools/binman/binman.rst                     | 29 ++++++++++++++++
 tools/binman/cmdline.py                     |  2 ++
 tools/binman/control.py                     | 28 +++++++++++++---
 tools/binman/entries.rst                    | 11 +++++-
 tools/binman/entry.py                       | 37 +++++++++++++++++----
 tools/binman/etype/atf_fip.py               | 16 ++++++++-
 tools/binman/etype/cbfs.py                  |  8 ++---
 tools/binman/etype/fdtmap.py                | 12 +++++++
 tools/binman/etype/section.py               | 23 ++++++++++---
 tools/binman/ftest.py                       | 34 +++++++++++++++++++
 tools/binman/image.py                       |  2 +-
 tools/binman/test/213_fdtmap_alt_format.dts | 15 +++++++++
 tools/binman/test/214_no_alt_format.dts     | 13 ++++++++
 13 files changed, 208 insertions(+), 22 deletions(-)
 create mode 100644 tools/binman/test/213_fdtmap_alt_format.dts
 create mode 100644 tools/binman/test/214_no_alt_format.dts

Applied to u-boot-dm/next, thanks!


More information about the U-Boot mailing list