buildman: Allow ignoring warnings in the return code
authorSimon Glass <sjg@chromium.org>
Wed, 18 Mar 2020 15:42:44 +0000 (09:42 -0600)
committerTom Rini <trini@konsulko.com>
Sat, 11 Apr 2020 01:21:06 +0000 (21:21 -0400)
commit7beb43c9807159463ad6dd2a29517d4cee1e7478
treec8ea9fdc32576aa662fa59ebc2522317a62357aa
parentf9c094bbce6836004b05f3d7b7217512d199ae52
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>
tools/buildman/README
tools/buildman/cmdline.py
tools/buildman/control.py