summaryrefslogtreecommitdiff
path: root/tools/buildman/builder.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-02-05 22:06:12 -0700
committerSimon Glass <sjg@chromium.org>2015-04-18 16:24:24 -0600
commit40f11fce7c686f2b51ae109c4085fb5988c5631c (patch)
treea0686923d01306ca4937de003b73f0acc41b1194 /tools/buildman/builder.py
parent741e58e0fc8ecf5669ccb7cd9100c5bf68d89158 (diff)
buildman: Show 'make' command line when -V is used
When a verbose build it selected, show the make command before the output of that command. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/buildman/builder.py')
-rw-r--r--tools/buildman/builder.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/buildman/builder.py b/tools/buildman/builder.py
index 54f3292208..72353b9104 100644
--- a/tools/buildman/builder.py
+++ b/tools/buildman/builder.py
@@ -335,6 +335,9 @@ class Builder:
cmd = [self.gnu_make] + list(args)
result = command.RunPipe([cmd], capture=True, capture_stderr=True,
cwd=cwd, raise_on_error=False, **kwargs)
+ if self.verbose_build:
+ result.stdout = '%s\n' % (' '.join(cmd)) + result.stdout
+ result.combined = '%s\n' % (' '.join(cmd)) + result.combined
return result
def ProcessResult(self, result):