summaryrefslogtreecommitdiff
path: root/tools/binman
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2025-05-11 16:18:20 +0200
committerSimon Glass <[email protected]>2025-05-27 10:07:42 +0100
commitdb5d98de55066db3b1ee3514bbf0fd304ec7775e (patch)
treedf03b09e7a301b50628c8f9dcf92fbc021745d8a /tools/binman
parent75ae217194ad680bac8d3f2b0e2bcd0976c91735 (diff)
u_boot_pylib: Support a fatal level in tout
It is convenient to be able to print a message and exit. Add a new 'fatal' level to support this. Update some assumptions about the level, so that the tools continue to work as now. Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'tools/binman')
-rw-r--r--tools/binman/control.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/binman/control.py b/tools/binman/control.py
index 81f61e3e152..1946656f7d3 100644
--- a/tools/binman/control.py
+++ b/tools/binman/control.py
@@ -777,7 +777,7 @@ def Binman(args):
if args.cmd in ['ls', 'extract', 'replace', 'tool', 'sign']:
try:
- tout.init(args.verbosity)
+ tout.init(args.verbosity + 1)
if args.cmd == 'replace':
tools.prepare_output_dir(args.outdir, args.preserve)
else:
@@ -835,9 +835,9 @@ def Binman(args):
args.indir.append(board_pathname)
try:
- tout.init(args.verbosity)
+ tout.init(args.verbosity + 1)
elf.debug = args.debug
- cbfs_util.VERBOSE = args.verbosity > 2
+ cbfs_util.VERBOSE = args.verbosity > tout.NOTICE
state.use_fake_dtb = args.fake_dtb
# Normally we replace the 'u-boot' etype with 'u-boot-expanded', etc.