Skip to content
Snippets Groups Projects
Commit 95bf9c7e authored by Joe Hershberger's avatar Joe Hershberger Committed by Masahiro Yamada
Browse files

moveconfig: Add a switch to enable printing errors


In some cases the build for the autoconf breaks. This outputs the errors
following the status so that action can be taken without building again
manually.

Signed-off-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
Acked-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 25400090
No related branches found
No related tags found
No related merge requests found
...@@ -153,6 +153,9 @@ Available options ...@@ -153,6 +153,9 @@ Available options
Specify the number of threads to run simultaneously. If not specified, Specify the number of threads to run simultaneously. If not specified,
the number of threads is the same as the number of CPU cores. the number of threads is the same as the number of CPU cores.
-v, --verbose
Show any build errors as boards are built
To see the complete list of supported options, run To see the complete list of supported options, run
$ tools/moveconfig.py -h $ tools/moveconfig.py -h
...@@ -611,6 +614,9 @@ class Slot: ...@@ -611,6 +614,9 @@ class Slot:
COLOR_LIGHT_RED, COLOR_LIGHT_RED,
self.defconfig, self.defconfig,
errmsg), errmsg),
if self.options.verbose:
print >> sys.stderr, color_text(self.options.color,
COLOR_LIGHT_CYAN, errout)
if self.options.exit_on_error: if self.options.exit_on_error:
sys.exit("Exit on error.") sys.exit("Exit on error.")
else: else:
...@@ -875,6 +881,8 @@ def main(): ...@@ -875,6 +881,8 @@ def main():
help='only cleanup the headers') help='only cleanup the headers')
parser.add_option('-j', '--jobs', type='int', default=cpu_count, parser.add_option('-j', '--jobs', type='int', default=cpu_count,
help='the number of jobs to run simultaneously') help='the number of jobs to run simultaneously')
parser.add_option('-v', '--verbose', action='store_true', default=False,
help='show any build errors as boards are built')
parser.usage += ' recipe_file\n\n' + \ parser.usage += ' recipe_file\n\n' + \
'The recipe_file should describe config options you want to move.\n' + \ 'The recipe_file should describe config options you want to move.\n' + \
'Each line should contain config_name, type, default_value\n\n' + \ 'Each line should contain config_name, type, default_value\n\n' + \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment