summaryrefslogtreecommitdiff
path: root/tools/buildman/control.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-08-09 15:33:02 -0600
committerSimon Glass <sjg@chromium.org>2014-08-13 08:34:15 -0600
commitb2ea7ab25258621871db1f884be1a2f2b1641741 (patch)
treebcf0dc78bbe4c8c3537d6e7c22456c6621587b8b /tools/buildman/control.py
parentc1de50149228c73c90f71a51c8a0a4ab7d651b3a (diff)
downloadu-boot-imx-b2ea7ab25258621871db1f884be1a2f2b1641741.zip
u-boot-imx-b2ea7ab25258621871db1f884be1a2f2b1641741.tar.gz
u-boot-imx-b2ea7ab25258621871db1f884be1a2f2b1641741.tar.bz2
buildman: Refactor output options
We need the output options to be available in several places. It's a pain to pass them into each function. Make them properties of the builder and add a single function to set them up. At the same time, add a function which produces summary output using these options. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/buildman/control.py')
-rw-r--r--tools/buildman/control.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/buildman/control.py b/tools/buildman/control.py
index 12a9699..d8fa74b 100644
--- a/tools/buildman/control.py
+++ b/tools/buildman/control.py
@@ -207,13 +207,13 @@ def DoBuildman(options, args):
print GetActionSummary(options.summary, commits, board_selected,
options)
+ builder.SetDisplayOptions(options.show_errors, options.show_sizes,
+ options.show_detail, options.show_bloat)
if options.summary:
# We can't show function sizes without board details at present
if options.show_bloat:
options.show_detail = True
- builder.ShowSummary(commits, board_selected,
- options.show_errors, options.show_sizes,
- options.show_detail, options.show_bloat)
+ builder.ShowSummary(commits, board_selected)
else:
builder.BuildBoards(commits, board_selected,
- options.show_errors, options.keep_outputs)
+ options.keep_outputs)