buildman: Allow ignoring warnings in the return code
[oweals/u-boot.git] / tools / buildman / cmdline.py
index 74b410010d5d7474a78c9e0165334d86d982588a..f387aeb1cfa97e93bb09d1bfaf2159cdc8f381b8 100644 (file)
@@ -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')