]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
buildman: Only print toolchain probing with -v
authorSimon Glass <sjg@chromium.org>
Tue, 6 Nov 2018 23:02:10 +0000 (16:02 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 21 Nov 2018 02:14:22 +0000 (19:14 -0700)
At present --list-tool-chains prints a lot of information about the
toolchain-probing process. This is generally not very interesting.
Update buildman to print this only if --list-tool-chains is given
with -v.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/buildman/cmdline.py
tools/buildman/control.py

index 49a8a131182bdf6a8d358255f45b897a61c9e415..93d09ca08d739f915912c1fdb609446d65b0b44f 100644 (file)
@@ -66,7 +66,7 @@ def ParseArgs():
     parser.add_option('-l', '--list-error-boards', action='store_true',
           default=False, help='Show a list of boards next to each error/warning')
     parser.add_option('--list-tool-chains', action='store_true', default=False,
-          help='List available tool chains')
+          help='List available tool chains (use -v to see probing detail)')
     parser.add_option('-n', '--dry-run', action='store_true', dest='dry_run',
           default=False, help="Do a dry run (describe actions, but do nothing)")
     parser.add_option('-N', '--no-subdirs', action='store_true', dest='no_subdirs',
index 96f8ccfe070d78e410178743b471ad067459722c..c900211510e42ef5d15e4f93f7c2b6a33f83c261 100644 (file)
@@ -164,7 +164,7 @@ def DoBuildman(options, args, toolchains=None, make_func=None, boards=None,
 
     if no_toolchains:
         toolchains.GetSettings()
-        toolchains.Scan(options.list_tool_chains)
+        toolchains.Scan(options.list_tool_chains and options.verbose)
     if options.list_tool_chains:
         toolchains.List()
         print