]> git.baikalelectronics.ru Git - uboot.git/commit
binman: Allow entry args to be required
authorSimon Glass <sjg@chromium.org>
Tue, 1 Sep 2020 11:13:54 +0000 (05:13 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 22 Sep 2020 18:50:43 +0000 (12:50 -0600)
commitbde782f6d0e9c395b15b3cffca046da7c3a22321
tree32e562dacc7e77d3cddb330f303e4f00b0bca850
parentcfdd84a53a17d84f560a6d167d0350b241e5eafb
binman: Allow entry args to be required

If an entry argument is needed by an entry but the entry argument is not
present, then a strange error can occur when trying to read the file.

Fix this by allowing arguments to be required. Select this option for the
cros-ec-rw entry. If a filename is provided in the node, allow that to be
used.

Also tidy up a few related tests to make the error string easier to find,
and fully ignore unused return values.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/README.entries
tools/binman/etype/blob_named_by_arg.py
tools/binman/etype/cros_ec_rw.py
tools/binman/ftest.py