diff options
author | Simon Glass <sjg@chromium.org> | 2021-03-26 16:17:25 +1300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-04-06 16:33:19 +1200 |
commit | 0c59acef34434e47e054957108eb4fa7cef93123 (patch) | |
tree | 5bab45c29f12e205d199e58a9e5bcaf9c889737f /tools/dtoc/dtb_platdata.py | |
parent | 5f86454b3da54586513ab83941a021cb79c383c7 (diff) |
dtoc: Show driver warnings once at the end
At present warnings are shown as soon as they are discovered in the
source scannner. But the function that detects them may be called multiple
times.
Collect all the warnings and show them at the end.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/dtoc/dtb_platdata.py')
-rw-r--r-- | tools/dtoc/dtb_platdata.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/dtoc/dtb_platdata.py b/tools/dtoc/dtb_platdata.py index c9c657cb9a..dd97a6be70 100644 --- a/tools/dtoc/dtb_platdata.py +++ b/tools/dtoc/dtb_platdata.py @@ -1194,8 +1194,7 @@ def run_steps(args, dtb_file, include_disabled, output, output_dirs, phase, raise ValueError('Must specify either output or output_dirs, not both') if not scan: - scan = src_scan.Scanner(basedir, warning_disabled, drivers_additional, - phase) + scan = src_scan.Scanner(basedir, drivers_additional, phase) scan.scan_drivers() do_process = True else: @@ -1232,4 +1231,7 @@ def run_steps(args, dtb_file, include_disabled, output, output_dirs, phase, plat.out_header(outfile) outfile.method(plat) plat.finish_output() + + if not warning_disabled: + scan.show_warnings() return plat |