summaryrefslogtreecommitdiffstats
path: root/meta/classes-global
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2023-07-27 16:36:08 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-07-30 09:16:52 +0100
commite8c833798986b99bcc54241e23e4ecf522b823a1 (patch)
treeffe8f0c87d1538afc9ae4c498a5df3a9a99b9b77 /meta/classes-global
parente0515a6a0d9b9e433dfc6ea2152ae0eda368a479 (diff)
downloadpoky-e8c833798986b99bcc54241e23e4ecf522b823a1.tar.gz
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>
Diffstat (limited to 'meta/classes-global')
-rw-r--r--meta/classes-global/insane.bbclass14
1 files changed, 14 insertions, 0 deletions
diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass
index 114781c780..148ae4b7ad 100644
--- a/meta/classes-global/insane.bbclass
+++ b/meta/classes-global/insane.bbclass
@@ -1469,6 +1469,20 @@ python do_qa_unpack() {
1469 unpack_check_src_uri(d.getVar('PN'), d) 1469 unpack_check_src_uri(d.getVar('PN'), d)
1470} 1470}
1471 1471
1472python do_recipe_qa() {
1473 oe.qa.exit_if_errors(d)
1474}
1475
1476addtask do_recipe_qa before do_fetch do_package_qa do_build
1477
1478SSTATETASKS += "do_recipe_qa"
1479do_recipe_qa[sstate-inputdirs] = ""
1480do_recipe_qa[sstate-outputdirs] = ""
1481python do_recipe_qa_setscene () {
1482 sstate_setscene(d)
1483}
1484addtask do_recipe_qa_setscene
1485
1472# Check for patch fuzz 1486# Check for patch fuzz
1473do_patch[postfuncs] += "do_qa_patch " 1487do_patch[postfuncs] += "do_qa_patch "
1474 1488