]> code.ossystems Code Review - openembedded-core.git/commit
insane,license,license_image: Allow treating license problems as errors
authorMike Crowe <mac@mcrowe.com>
Fri, 15 Oct 2021 14:39:54 +0000 (15:39 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 17 Oct 2021 10:55:21 +0000 (11:55 +0100)
commitbb164adca94b5a43751aabe6b6d702a3d60dfdc7
treeffcb0e7e85dd7959ea8e192102f6ede0983034fe
parentf0ad152ef4cc15c042bc9eeefb6af096d054b220
insane,license,license_image: Allow treating license problems as errors

Use the same WARN_WA and ERROR_QA variables as insane.bbclass to allow
individual recipes, the distro or other configuration to determine
whether the various detected license errors should be treated as a
warning (as now) or as an error.

oe.qa.handle_error isn't immediately fatal, so oe.qa.exit_if_errors must
be called at the end of do_populate_lic to fail the task.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/insane.bbclass
meta/classes/license.bbclass
meta/classes/license_image.bbclass