diff mbox series

[2/2] insane: Ensure package_qa tasks run in builds when expected

Message ID 20241023105025.3376089-2-richard.purdie@linuxfoundation.org
State Accepted, archived
Commit e0beb64c6d3cf1d649f79a8704fb25cdf83b4a8b
Headers show
Series [1/2] time64.inc: Exclude pseudo from the 32bit-time warnings | expand

Commit Message

Richard Purdie Oct. 23, 2024, 10:50 a.m. UTC
Currently, if you "bitbake XXX" and XXX depends on something else,
the do_package_qa teask for that something may not run. Users would
generally expect it to have though.

Add in the missing dependency to ensure that do_build does trigger
the right package_qa tasks.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/classes-global/insane.bbclass | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass
index d97f21f8fdd..47c8b9be10a 100644
--- a/meta/classes-global/insane.bbclass
+++ b/meta/classes-global/insane.bbclass
@@ -1192,6 +1192,8 @@  do_package_qa[vardepsexclude] = "BB_TASKDEPDATA"
 do_package_qa[rdeptask] = "do_packagedata"
 addtask do_package_qa after do_packagedata do_package before do_build
 
+do_build[rdeptask] += "do_package_qa"
+
 # Add the package specific INSANE_SKIPs to the sstate dependencies
 python() {
     pkgs = (d.getVar('PACKAGES') or '').split()