diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2023-07-27 16:36:08 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-07-30 09:16:52 +0100 |
commit | e8c833798986b99bcc54241e23e4ecf522b823a1 (patch) | |
tree | ffe8f0c87d1538afc9ae4c498a5df3a9a99b9b77 /meta/classes-global | |
parent | e0515a6a0d9b9e433dfc6ea2152ae0eda368a479 (diff) | |
download | poky-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.bbclass | 14 |
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 | ||
1472 | python do_recipe_qa() { | ||
1473 | oe.qa.exit_if_errors(d) | ||
1474 | } | ||
1475 | |||
1476 | addtask do_recipe_qa before do_fetch do_package_qa do_build | ||
1477 | |||
1478 | SSTATETASKS += "do_recipe_qa" | ||
1479 | do_recipe_qa[sstate-inputdirs] = "" | ||
1480 | do_recipe_qa[sstate-outputdirs] = "" | ||
1481 | python do_recipe_qa_setscene () { | ||
1482 | sstate_setscene(d) | ||
1483 | } | ||
1484 | addtask do_recipe_qa_setscene | ||
1485 | |||
1472 | # Check for patch fuzz | 1486 | # Check for patch fuzz |
1473 | do_patch[postfuncs] += "do_qa_patch " | 1487 | do_patch[postfuncs] += "do_qa_patch " |
1474 | 1488 | ||