mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
@@ -19,6 +19,7 @@ import time
|
||||
from buildman import board
|
||||
from buildman import kconfiglib
|
||||
|
||||
from u_boot_pylib.terminal import print_clear, tprint
|
||||
|
||||
### constant variables ###
|
||||
OUTPUT_FILE = 'boards.cfg'
|
||||
@@ -863,11 +864,19 @@ class Boards:
|
||||
Returns:
|
||||
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:
|
||||
print(f'{output} is up to date. Nothing to do.')
|
||||
return True
|
||||
tprint('\rChecking for Kconfig changes...', newline=False)
|
||||
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)
|
||||
print_clear()
|
||||
for warn in warnings:
|
||||
print(warn, file=sys.stderr)
|
||||
self.format_and_output(params_list, output)
|
||||
|
||||
@@ -328,7 +328,7 @@ class Builder:
|
||||
self._build_period_us = None
|
||||
self._complete_delay = None
|
||||
self._next_delay_update = datetime.now()
|
||||
self._start_time = datetime.now()
|
||||
self._start_time = None
|
||||
self._step = step
|
||||
self._error_lines = 0
|
||||
self.no_subdirs = no_subdirs
|
||||
@@ -1778,6 +1778,7 @@ class Builder:
|
||||
self._prepare_output_space()
|
||||
if not self._ide:
|
||||
tprint('\rStarting build...', newline=False)
|
||||
self._start_time = datetime.now()
|
||||
self.setup_build(board_selected, commits)
|
||||
self.process_result(None)
|
||||
self.thread_exceptions = []
|
||||
|
||||
@@ -23,6 +23,9 @@ from u_boot_pylib import command
|
||||
RETURN_CODE_RETRY = -1
|
||||
BASE_ELF_FILENAMES = ['u-boot', 'spl/u-boot-spl', 'tpl/u-boot-tpl']
|
||||
|
||||
# Common extensions for images
|
||||
COMMON_EXTS = ['.bin', '.rom', '.itb', '.img']
|
||||
|
||||
def mkdir(dirname, parents=False):
|
||||
"""Make a directory if it doesn't already exist.
|
||||
|
||||
@@ -636,10 +639,11 @@ class BuilderThread(threading.Thread):
|
||||
|
||||
# Now write the actual build output
|
||||
if keep_outputs:
|
||||
copy_files(
|
||||
result.out_dir, build_dir, '',
|
||||
['u-boot*', '*.bin', '*.map', '*.img', 'MLO', 'SPL',
|
||||
'include/autoconf.mk', 'spl/u-boot-spl*'])
|
||||
to_copy = ['u-boot*', '*.map', 'MLO', 'SPL',
|
||||
'include/autoconf.mk', 'spl/u-boot-spl*',
|
||||
'tpl/u-boot-tpl*', 'vpl/u-boot-vpl*']
|
||||
to_copy += [f'*{ext}' for ext in COMMON_EXTS]
|
||||
copy_files(result.out_dir, build_dir, '', to_copy)
|
||||
|
||||
def _send_result(self, result):
|
||||
"""Send a result to the builder for processing
|
||||
|
||||
@@ -621,7 +621,8 @@ def do_buildman(args, toolchains=None, make_func=None, brds=None,
|
||||
if not brds:
|
||||
brds = get_boards_obj(output_dir, args.regen_board_list,
|
||||
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):
|
||||
return brds
|
||||
|
||||
|
||||
@@ -499,7 +499,7 @@ class Toolchains:
|
||||
if arch == 'aarch64':
|
||||
arch = 'arm64'
|
||||
base = 'https://www.kernel.org/pub/tools/crosstool/files/bin'
|
||||
versions = ['13.1.0', '12.2.0']
|
||||
versions = ['13.2.0', '12.2.0']
|
||||
links = []
|
||||
for version in versions:
|
||||
url = '%s/%s/%s/' % (base, arch, version)
|
||||
|
||||
Reference in New Issue
Block a user