summaryrefslogtreecommitdiff
path: root/tools/buildman/buildman.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-08-28 09:43:43 -0600
committerSimon Glass <sjg@chromium.org>2014-09-05 13:40:43 -0600
commited9666573eb08b4d8f18855d9f62e22ba0316ee9 (patch)
tree8894296ee7aac2e2005f85dcf5ce48583ed04525 /tools/buildman/buildman.py
parent48c1b6a8ff9f539506f59bfe42590af0f92c8cb8 (diff)
downloadu-boot-ed9666573eb08b4d8f18855d9f62e22ba0316ee9.tar.gz
u-boot-ed9666573eb08b4d8f18855d9f62e22ba0316ee9.tar.bz2
u-boot-ed9666573eb08b4d8f18855d9f62e22ba0316ee9.zip
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-xtools/buildman/buildman.py2
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',