binman: Support adding files
authorSimon Glass <sjg@chromium.org>
Fri, 14 Sep 2018 10:57:28 +0000 (04:57 -0600)
committerSimon Glass <sjg@chromium.org>
Sat, 29 Sep 2018 17:49:35 +0000 (11:49 -0600)
commit0a98b28b06800da48f006069fe14e47dd399d2ff
tree1646d2600d0b6e8ba7459695db082bc7f345d9b6
parentb4e1a38c294f56708d1a82717c850da359401d7e
binman: Support adding files

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@chromium.org>
17 files changed:
tools/binman/README.entries
tools/binman/bsection.py
tools/binman/control.py
tools/binman/entry.py
tools/binman/etype/files.py [new file with mode: 0644]
tools/binman/ftest.py
tools/binman/image.py
tools/binman/state.py
tools/binman/test/84_files.dts [new file with mode: 0644]
tools/binman/test/85_files_compress.dts [new file with mode: 0644]
tools/binman/test/86_files_none.dts [new file with mode: 0644]
tools/binman/test/87_files_no_pattern.dts [new file with mode: 0644]
tools/binman/test/files/1.dat [new file with mode: 0644]
tools/binman/test/files/2.dat [new file with mode: 0644]
tools/binman/test/files/ignored_dir.dat/ignore [new file with mode: 0644]
tools/binman/test/files/not-this-one [new file with mode: 0644]
tools/patman/tools.py