summaryrefslogtreecommitdiff
path: root/tools/buildman/builderthread.py
diff options
context:
space:
mode:
authorDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2018-01-26 16:31:05 +0100
committerTom Rini <trini@konsulko.com>2018-02-04 22:55:34 -0500
commit2371d1bcbf397dcbe38f7f51de6247cfef09d74e (patch)
tree9a9b0fb66790a6b6bddfacf838e987a325de559c /tools/buildman/builderthread.py
parent215bb1c14749591d2ac486682fad68fffc1c6bdb (diff)
downloadu-boot-2371d1bcbf397dcbe38f7f51de6247cfef09d74e.tar.gz
u-boot-2371d1bcbf397dcbe38f7f51de6247cfef09d74e.tar.bz2
u-boot-2371d1bcbf397dcbe38f7f51de6247cfef09d74e.zip
buildman: add option -E for treating compiler warnings as errors
Add a new option '-E' for treating all compiler warnings as errors. Eventually this will pass 'KCFLAGS=-Werror' to Kbuild. Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Diffstat (limited to 'tools/buildman/builderthread.py')
-rw-r--r--tools/buildman/builderthread.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/buildman/builderthread.py b/tools/buildman/builderthread.py
index 9e8ca80c5b..9ac101a5a4 100644
--- a/tools/buildman/builderthread.py
+++ b/tools/buildman/builderthread.py
@@ -216,6 +216,8 @@ class BuilderThread(threading.Thread):
args.append('-s')
if self.builder.num_jobs is not None:
args.extend(['-j', str(self.builder.num_jobs)])
+ if self.builder.warnings_as_errors:
+ args.append('KCFLAGS=-Werror')
config_args = ['%s_defconfig' % brd.target]
config_out = ''
args.extend(self.builder.toolchains.GetMakeArguments(brd))