]> code.ossystems Code Review - openembedded-core.git/commitdiff
insane.bbclass: add package specific skips to sstate hash
authorMichael Ho <Michael.Ho@bmw.de>
Thu, 29 Nov 2018 12:21:37 +0000 (14:21 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 14 Dec 2018 17:09:12 +0000 (17:09 +0000)
The bbclass currently adds INSANE_SKIP to the sstate hash dependencies
however the package specific skips such as INSANE_SKIP_${PN} are
not added automatically because of how the class references them.

This causes the problem that modifying INSANE_SKIP_${PN} does not
invalidate the sstate cache and can mask build breaking warnings.

Add an anonymous python snippet to explicitly include these additional
relevant skips to the sstate hash.

Singed-off-by: Michael Ho <Michael.Ho@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/insane.bbclass

index 29754f4cfe86673849d0cb588d74b67a01c231f4..6411884f92e378646deaf644aea4c36c919b69c6 100644 (file)
@@ -1017,6 +1017,13 @@ do_package_qa[vardepsexclude] = "BB_TASKDEPDATA"
 do_package_qa[rdeptask] = "do_packagedata"
 addtask do_package_qa after do_packagedata do_package before do_build
 
+# Add the package specific INSANE_SKIPs to the sstate dependencies
+python() {
+    pkgs = (d.getVar('PACKAGES') or '').split()
+    for pkg in pkgs:
+        d.appendVarFlag("do_package_qa", "vardeps", " INSANE_SKIP_{}".format(pkg))
+}
+
 SSTATETASKS += "do_package_qa"
 do_package_qa[sstate-inputdirs] = ""
 do_package_qa[sstate-outputdirs] = ""