]> code.ossystems Code Review - openembedded-core.git/commitdiff
sstate: Improve funciton checksums
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 4 Feb 2014 22:49:54 +0000 (22:49 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 4 Feb 2014 22:49:58 +0000 (22:49 +0000)
Now that bitbake is recursing into pre/postfuncs, we need to ensure
the dependencies of these functions is correct. We don't want dependencies
on MACHINE or other related variables. This patch adds in appropriate
variable exclusions to achieve this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sstate.bbclass

index 23d7de6556e22ed4740856ccc727c659a8b49c04..ec9c5463eae70bb1cf969c5cb66d2c744a095dbe 100644 (file)
@@ -211,6 +211,8 @@ def sstate_install(ss, d):
     for lock in locks:
         bb.utils.unlockfile(lock)
 
+sstate_install[vardepsexclude] = "SSTATE_DUPWHITELIST STATE_MANMACH SSTATE_MANFILEPREFIX"
+
 def sstate_installpkg(ss, d):
     import oe.path
     import subprocess
@@ -373,6 +375,8 @@ def sstate_clean(ss, d):
                 stfile.endswith(rm_nohash):
             oe.path.remove(stfile)
 
+sstate_clean[vardepsexclude] = "SSTATE_MANFILEPREFIX"
+
 CLEANFUNCS += "sstate_cleanall"
 
 python sstate_cleanall() {