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)
commit3decfa3a8761538d791d006edbf01135a453a2ac
tree32e562dacc7e77d3cddb330f303e4f00b0bca850
parentdc447b6b3fef1b145014519f607bb9722455bc16
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