diff options
author | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2018-01-26 18:31:05 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-02-05 06:55:34 +0300 |
commit | 2371d1bcbf397dcbe38f7f51de6247cfef09d74e (patch) | |
tree | 9a9b0fb66790a6b6bddfacf838e987a325de559c /tools/buildman/builder.py | |
parent | 215bb1c14749591d2ac486682fad68fffc1c6bdb (diff) | |
download | u-boot-2371d1bcbf397dcbe38f7f51de6247cfef09d74e.tar.xz |
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/builder.py')
-rw-r--r-- | tools/buildman/builder.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/buildman/builder.py b/tools/buildman/builder.py index acb0810457..4e72b7d60d 100644 --- a/tools/buildman/builder.py +++ b/tools/buildman/builder.py @@ -212,7 +212,8 @@ class Builder: gnu_make='make', checkout=True, show_unknown=True, step=1, no_subdirs=False, full_path=False, verbose_build=False, incremental=False, per_board_out_dir=False, - config_only=False, squash_config_y=False): + config_only=False, squash_config_y=False, + warnings_as_errors=False): """Create a new Builder object Args: @@ -237,6 +238,7 @@ class Builder: board rather than a thread-specific directory config_only: Only configure each build, don't build it squash_config_y: Convert CONFIG options with the value 'y' to '1' + warnings_as_errors: Treat all compiler warnings as errors """ self.toolchains = toolchains self.base_dir = base_dir @@ -270,6 +272,7 @@ class Builder: if not self.squash_config_y: self.config_filenames += EXTRA_CONFIG_FILENAMES + self.warnings_as_errors = warnings_as_errors self.col = terminal.Color() self._re_function = re.compile('(.*): In function.*') |