[U-Boot] [PATCH 23/31] binman: Support adding files

Simon Glass sjg at chromium.org
Tue Oct 2 11:20:13 UTC 2018


On 14 September 2018 at 03:57, Simon Glass <sjg at chromium.org> wrote:
> In some cases it is useful to add a group of files to the image and be
> able to access them at run-time. Of course it is possible to generate
> the binman config file with a set of blobs each with a filename. But for
> convenience, add an entry type which can do this.
>
> Add required support (for adding nodes and string properties) into the
> state module.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
>  tools/binman/README.entries                   | 15 +++++
>  tools/binman/bsection.py                      |  4 ++
>  tools/binman/control.py                       |  1 +
>  tools/binman/entry.py                         |  3 +
>  tools/binman/etype/files.py                   | 57 +++++++++++++++++++
>  tools/binman/ftest.py                         | 43 ++++++++++++++
>  tools/binman/image.py                         |  9 +++
>  tools/binman/state.py                         | 27 +++++++++
>  tools/binman/test/84_files.dts                | 11 ++++
>  tools/binman/test/85_files_compress.dts       | 11 ++++
>  tools/binman/test/86_files_none.dts           | 12 ++++
>  tools/binman/test/87_files_no_pattern.dts     | 11 ++++
>  tools/binman/test/files/1.dat                 |  1 +
>  tools/binman/test/files/2.dat                 |  1 +
>  .../binman/test/files/ignored_dir.dat/ignore  |  0
>  tools/binman/test/files/not-this-one          |  1 +
>  tools/patman/tools.py                         | 18 ++++++
>  17 files changed, 225 insertions(+)
>  create mode 100644 tools/binman/etype/files.py
>  create mode 100644 tools/binman/test/84_files.dts
>  create mode 100644 tools/binman/test/85_files_compress.dts
>  create mode 100644 tools/binman/test/86_files_none.dts
>  create mode 100644 tools/binman/test/87_files_no_pattern.dts
>  create mode 100644 tools/binman/test/files/1.dat
>  create mode 100644 tools/binman/test/files/2.dat
>  create mode 100644 tools/binman/test/files/ignored_dir.dat/ignore
>  create mode 100644 tools/binman/test/files/not-this-one

Applied to u-boot-dm, and now in mainline.


More information about the U-Boot mailing list