summaryrefslogtreecommitdiffstats
path: root/tools/buildman/cmdline.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-03-18 09:42:44 -0600
committerTom Rini <trini@konsulko.com>2020-04-10 21:21:06 -0400
commit7beb43c9807159463ad6dd2a29517d4cee1e7478 (patch)
treec8ea9fdc32576aa662fa59ebc2522317a62357aa /tools/buildman/cmdline.py
parentf9c094bbce6836004b05f3d7b7217512d199ae52 (diff)
downloadu-boot-7beb43c9807159463ad6dd2a29517d4cee1e7478.tar.gz
u-boot-7beb43c9807159463ad6dd2a29517d4cee1e7478.tar.xz
u-boot-7beb43c9807159463ad6dd2a29517d4cee1e7478.zip
buildman: Allow ignoring warnings in the return code
Sometimes we don't want buildman to return failure if it seems warnings. Add a -W option to support this. If buildman detects warnings (and no errors) it will return an exit code of 0 (success). Note that the definition of 'warnings' includes the migration warnings produced by U-Boot, such as: ===================== WARNING ====================== This board does not use CONFIG_DM_MMC. Please update ... ==================================================== Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'tools/buildman/cmdline.py')
-rw-r--r--tools/buildman/cmdline.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/buildman/cmdline.py b/tools/buildman/cmdline.py
index 74b410010d..f387aeb1cf 100644
--- a/tools/buildman/cmdline.py
+++ b/tools/buildman/cmdline.py
@@ -108,6 +108,8 @@ def ParseArgs():
default=False, help='Run make with V=1, logging all output')
parser.add_option('-w', '--work-in-output', action='store_true',
default=False, help='Use the output directory as the work directory')
+ parser.add_option('-W', '--ignore-warnings', action='store_true',
+ default=False, help='Return success even if there are warnings')
parser.add_option('-x', '--exclude', dest='exclude',
type='string', action='append',
help='Specify a list of boards to exclude, separated by comma')