insane.bbclass: add do_recipe_qa task

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.

(From OE-Core rev: e0c71367ab59021fc430ef215bbfc3b525036ba4)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alexander Kanavin 2023-07-27 16:36:08 +02:00 committed by Richard Purdie
parent e0515a6a0d
commit e8c8337989

View File

@ -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 "