]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
insane.bbclass: Make changes to QA_EMPTY_DIRS trigger package_qa to rerun
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Fri, 1 Apr 2022 23:59:06 +0000 (01:59 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 3 Apr 2022 16:51:56 +0000 (17:51 +0100)
If "empty-dirs" is in ERROR_QA, then changes to QA_EMPTY_DIRS should
trigger the package_qa tasks to be rerun.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/insane.bbclass

index 62086e1a9aa01a42a4171addd36c93361f0d0d75..0bc6492c834a238402f04e8496fb85e9c1d2f177 100644 (file)
@@ -1117,6 +1117,7 @@ python do_package_qa () {
 # binutils is used for most checks, so need to set as dependency
 # POPULATESYSROOTDEPS is defined in staging class.
 do_package_qa[depends] += "${POPULATESYSROOTDEPS}"
+do_package_qa[vardeps] = "${@bb.utils.contains('ERROR_QA', 'empty-dirs', 'QA_EMPTY_DIRS', '', d)}"
 do_package_qa[vardepsexclude] = "BB_TASKDEPDATA"
 do_package_qa[rdeptask] = "do_packagedata"
 addtask do_package_qa after do_packagedata do_package before do_build