[PATCH v5 04/16] binman: Use an exit code when blobs are missing
Simon Glass
sjg at chromium.org
Wed Nov 23 03:11:34 CET 2022
At present binman returns success when told to handle missing/faked blobs
or missing bintools. This is confusing since in fact the resulting image
cannot work.
Use exit code 103 to signal this problem, with a -W option to convert
it to a warning.
Rename the flag to --ignore-missing since it controls bintools also.
Add documentation about exit codes while we are here.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
Changes in v5:
- Add a note that -W requires -M
- Update ftest use of -W to avoid confusion
- Update exit-status docs to mention -W also
- Rename flag to --ignore-missing
- Update commit message
- Correct help for -M flag
tools/binman/binman.rst | 22 ++++++++++++++++++++++
tools/binman/cmdline.py | 5 ++++-
tools/binman/control.py | 9 ++++++++-
tools/binman/ftest.py | 19 +++++++++++++++++--
4 files changed, 51 insertions(+), 4 deletions(-)
Applied to u-boot-dm, thanks!
More information about the U-Boot
mailing list