mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
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>
This commit is contained in:
parent
215bb1c147
commit
2371d1bcbf
4 changed files with 10 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue