[oe-commits] [openembedded-core] 06/06: insane.bbclass: add package specific skips to sstate hash

git at git.openembedded.org git at git.openembedded.org
Sun Dec 9 11:09:02 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit b13454f5fd61dc8047a0714b41024779d8b5d839
Author: Michael Ho <Michael.Ho at bmw.de>
AuthorDate: Thu Nov 29 14:21:37 2018 +0200

    insane.bbclass: add package specific skips to sstate hash
    
    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 at bmw.de>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/insane.bbclass | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 295feb8..dbe9cc6 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -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] = ""

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list