mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-29 17:55:48 +00:00
buildman: Show progress when regenerating the board.cfg file
This can take a while, so show a message when starting. Signed-off-by: Simon Glass <sjg@chromium.org> Reported-by Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
124a0da554
commit
283dcb63cb
2 changed files with 14 additions and 4 deletions
|
@ -19,6 +19,7 @@ import time
|
||||||
from buildman import board
|
from buildman import board
|
||||||
from buildman import kconfiglib
|
from buildman import kconfiglib
|
||||||
|
|
||||||
|
from u_boot_pylib.terminal import print_clear, tprint
|
||||||
|
|
||||||
### constant variables ###
|
### constant variables ###
|
||||||
OUTPUT_FILE = 'boards.cfg'
|
OUTPUT_FILE = 'boards.cfg'
|
||||||
|
@ -863,11 +864,19 @@ class Boards:
|
||||||
Returns:
|
Returns:
|
||||||
bool: True if all is well, False if there were warnings
|
bool: True if all is well, False if there were warnings
|
||||||
"""
|
"""
|
||||||
if not force and output_is_new(output, CONFIG_DIR, '.'):
|
if not force:
|
||||||
if not quiet:
|
if not quiet:
|
||||||
print(f'{output} is up to date. Nothing to do.')
|
tprint('\rChecking for Kconfig changes...', newline=False)
|
||||||
return True
|
is_new = output_is_new(output, CONFIG_DIR, '.')
|
||||||
|
print_clear()
|
||||||
|
if is_new:
|
||||||
|
if not quiet:
|
||||||
|
print(f'{output} is up to date. Nothing to do.')
|
||||||
|
return True
|
||||||
|
if not quiet:
|
||||||
|
tprint('\rGenerating board list...', newline=False)
|
||||||
params_list, warnings = self.build_board_list(CONFIG_DIR, '.', jobs)
|
params_list, warnings = self.build_board_list(CONFIG_DIR, '.', jobs)
|
||||||
|
print_clear()
|
||||||
for warn in warnings:
|
for warn in warnings:
|
||||||
print(warn, file=sys.stderr)
|
print(warn, file=sys.stderr)
|
||||||
self.format_and_output(params_list, output)
|
self.format_and_output(params_list, output)
|
||||||
|
|
|
@ -621,7 +621,8 @@ def do_buildman(args, toolchains=None, make_func=None, brds=None,
|
||||||
if not brds:
|
if not brds:
|
||||||
brds = get_boards_obj(output_dir, args.regen_board_list,
|
brds = get_boards_obj(output_dir, args.regen_board_list,
|
||||||
args.maintainer_check, args.full_check,
|
args.maintainer_check, args.full_check,
|
||||||
args.threads, args.verbose)
|
args.threads, args.verbose and
|
||||||
|
not args.print_arch and not args.print_prefix)
|
||||||
if isinstance(brds, int):
|
if isinstance(brds, int):
|
||||||
return brds
|
return brds
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue