diff options
author | Simon Glass <sjg@chromium.org> | 2014-08-28 19:43:43 +0400 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-09-05 23:40:43 +0400 |
commit | ed9666573eb08b4d8f18855d9f62e22ba0316ee9 (patch) | |
tree | 8894296ee7aac2e2005f85dcf5ce48583ed04525 /tools/buildman/buildman.py | |
parent | 48c1b6a8ff9f539506f59bfe42590af0f92c8cb8 (diff) | |
download | u-boot-ed9666573eb08b4d8f18855d9f62e22ba0316ee9.tar.xz |
buildman: Add an option to show which boards caused which errors
Add a -l option to display a list of offending boards against each
error/warning line. The information will be shown in brackets as below:
02: wip
sandbox: + sandbox
arm: + seaboard
+(sandbox) arch/sandbox/cpu/cpu.c: In function 'timer_get_us':
+(sandbox) arch/sandbox/cpu/cpu.c:40:9: warning: unused variable 'i' [-Wunused-variable]
+(seaboard) board/nvidia/seaboard/seaboard.c: In function 'pin_mux_mmc':
+(seaboard) board/nvidia/seaboard/seaboard.c:36:9: warning: unused variable 'fred' [-Wunused-variable]
+(seaboard) int fred;
+(seaboard) ^
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/buildman/buildman.py')
-rwxr-xr-x | tools/buildman/buildman.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/buildman/buildman.py b/tools/buildman/buildman.py index 53592e50ec..1258b760ca 100755 --- a/tools/buildman/buildman.py +++ b/tools/buildman/buildman.py @@ -94,6 +94,8 @@ parser.add_option('-j', '--jobs', dest='jobs', type='int', default=None, help='Number of jobs to run at once (passed to make)') parser.add_option('-k', '--keep-outputs', action='store_true', default=False, help='Keep all build output files (e.g. binaries)') +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') parser.add_option('-n', '--dry-run', action='store_true', dest='dry_run', |