There is a need to run QA checks that can operate entirely from recipe metadata and do not need any of the build artefacts or source code. After some deliberation it was concluded that such checks are best collected in their own task that runs as early as possible, and so this commit adds the task.
Like package_qa, the task is sstate enabled, but doesn't (yet) register the qa results into sstate. Signed-off-by: Alexander Kanavin <a...@linutronix.de> --- meta/classes-global/insane.bbclass | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass index 114781c7803..148ae4b7ad5 100644 --- a/meta/classes-global/insane.bbclass +++ b/meta/classes-global/insane.bbclass @@ -1469,6 +1469,20 @@ python do_qa_unpack() { unpack_check_src_uri(d.getVar('PN'), d) } +python do_recipe_qa() { + oe.qa.exit_if_errors(d) +} + +addtask do_recipe_qa before do_fetch do_package_qa do_build + +SSTATETASKS += "do_recipe_qa" +do_recipe_qa[sstate-inputdirs] = "" +do_recipe_qa[sstate-outputdirs] = "" +python do_recipe_qa_setscene () { + sstate_setscene(d) +} +addtask do_recipe_qa_setscene + # Check for patch fuzz do_patch[postfuncs] += "do_qa_patch " -- 2.30.2
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#184942): https://lists.openembedded.org/g/openembedded-core/message/184942 Mute This Topic: https://lists.openembedded.org/mt/100391603/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-