buildman: Allow ignoring warnings in the return code
[oweals/u-boot.git] / tools / buildman / control.py
index 5d80400f7ab380830c701b3f8082cacc39148759..ded43602505cfffe34f2c1fce91ece0359c6b689 100644 (file)
@@ -386,6 +386,6 @@ def DoBuildman(options, args, toolchains=None, make_func=None, boards=None,
                                 options.keep_outputs, options.verbose)
             if fail:
                 return 128
-            elif warned:
+            elif warned and not options.ignore_warnings:
                 return 129
     return 0