mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-28 10:01:32 +00:00
buildman: Drop the toolchain error when downloading toolchains
It doesn't make sense to complain about missing toolchains when the --fetch-arch option is being used. The user is presumably aware that there is a toolchain problem and is actively correcting it by running with this option. Refactor the code to avoid printing this confusing message. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
2289b2763c
commit
7e92e46e63
1 changed files with 10 additions and 7 deletions
|
@ -111,14 +111,9 @@ def DoBuildman(options, args, toolchains=None, make_func=None, boards=None,
|
||||||
|
|
||||||
options.git_dir = os.path.join(options.git, '.git')
|
options.git_dir = os.path.join(options.git, '.git')
|
||||||
|
|
||||||
if not toolchains:
|
no_toolchains = toolchains is None
|
||||||
|
if no_toolchains:
|
||||||
toolchains = toolchain.Toolchains()
|
toolchains = toolchain.Toolchains()
|
||||||
toolchains.GetSettings()
|
|
||||||
toolchains.Scan(options.list_tool_chains)
|
|
||||||
if options.list_tool_chains:
|
|
||||||
toolchains.List()
|
|
||||||
print
|
|
||||||
return 0
|
|
||||||
|
|
||||||
if options.fetch_arch:
|
if options.fetch_arch:
|
||||||
if options.fetch_arch == 'list':
|
if options.fetch_arch == 'list':
|
||||||
|
@ -139,6 +134,14 @@ def DoBuildman(options, args, toolchains=None, make_func=None, boards=None,
|
||||||
return ret
|
return ret
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
if no_toolchains:
|
||||||
|
toolchains.GetSettings()
|
||||||
|
toolchains.Scan(options.list_tool_chains)
|
||||||
|
if options.list_tool_chains:
|
||||||
|
toolchains.List()
|
||||||
|
print
|
||||||
|
return 0
|
||||||
|
|
||||||
# Work out how many commits to build. We want to build everything on the
|
# Work out how many commits to build. We want to build everything on the
|
||||||
# branch. We also build the upstream commit as a control so we can see
|
# branch. We also build the upstream commit as a control so we can see
|
||||||
# problems introduced by the first commit on the branch.
|
# problems introduced by the first commit on the branch.
|
||||||
|
|
Loading…
Add table
Reference in a new issue