binman: Allow extracting a file in an alternative format
authorSimon Glass <sjg@chromium.org>
Wed, 24 Nov 2021 04:09:50 +0000 (21:09 -0700)
committerSimon Glass <sjg@chromium.org>
Sun, 5 Dec 2021 16:22:41 +0000 (09:22 -0700)
commit943bf78a48ac22ce0277697976fef4f89457b446
treef5a773d98a397109bf5ca95abcc70dbc6f543328
parent858436dfda11158ea4bb9e17195dba7f62b30b74
binman: Allow extracting a file in an alternative format

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@chromium.org>
12 files changed:
tools/binman/binman.rst
tools/binman/cmdline.py
tools/binman/control.py
tools/binman/entries.rst
tools/binman/entry.py
tools/binman/etype/cbfs.py
tools/binman/etype/fdtmap.py
tools/binman/etype/section.py
tools/binman/ftest.py
tools/binman/image.py
tools/binman/test/213_fdtmap_alt_format.dts [new file with mode: 0644]
tools/binman/test/214_no_alt_format.dts [new file with mode: 0644]