summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/sstatesig.py
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2012-02-26 08:49:43 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-26 10:56:45 +0000
commit17fe2963c9a3880c945587198ba1b1a3f6729046 (patch)
tree3fec10f5aa0a922006c8f6a9f1b69c63e89ebe2a /meta/lib/oe/sstatesig.py
parent745f5c329d493346502c591700c124cc8523dcdd (diff)
downloadpoky-17fe2963c9a3880c945587198ba1b1a3f6729046.tar.gz
sstatesig: add SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS option to exclude well defined recipe->dependency
(From OE-Core rev: d73c139fd73ee268d29837db6ccc69c412022d6e) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/sstatesig.py')
-rw-r--r--meta/lib/oe/sstatesig.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index 7b80c18b63..1c25823f71 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -33,6 +33,10 @@ def sstate_rundepfilter(siggen, fn, recipename, task, dep, depname, dataCache):
33 if depname in siggen.abisaferecipes: 33 if depname in siggen.abisaferecipes:
34 return False 34 return False
35 35
36 # Exclude well defined recipe->dependency
37 if "%s->%s" % (recipename, depname) in siggen.saferecipedeps:
38 return False
39
36 # Kernel modules are well namespaced. We don't want to depend on the kernel's checksum 40 # Kernel modules are well namespaced. We don't want to depend on the kernel's checksum
37 # if we're just doing an RRECOMMENDS_xxx = "kernel-module-*", not least because the checksum 41 # if we're just doing an RRECOMMENDS_xxx = "kernel-module-*", not least because the checksum
38 # is machine specific. 42 # is machine specific.
@@ -51,6 +55,7 @@ class SignatureGeneratorOEBasic(bb.siggen.SignatureGeneratorBasic):
51 name = "OEBasic" 55 name = "OEBasic"
52 def init_rundepcheck(self, data): 56 def init_rundepcheck(self, data):
53 self.abisaferecipes = (data.getVar("SIGGEN_EXCLUDERECIPES_ABISAFE", True) or "").split() 57 self.abisaferecipes = (data.getVar("SIGGEN_EXCLUDERECIPES_ABISAFE", True) or "").split()
58 self.saferecipedeps = (data.getVar("SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS", True) or "").split()
54 pass 59 pass
55 def rundep_check(self, fn, recipename, task, dep, depname, dataCache = None): 60 def rundep_check(self, fn, recipename, task, dep, depname, dataCache = None):
56 return sstate_rundepfilter(self, fn, recipename, task, dep, depname, dataCache) 61 return sstate_rundepfilter(self, fn, recipename, task, dep, depname, dataCache)
@@ -59,6 +64,7 @@ class SignatureGeneratorOEBasicHash(bb.siggen.SignatureGeneratorBasicHash):
59 name = "OEBasicHash" 64 name = "OEBasicHash"
60 def init_rundepcheck(self, data): 65 def init_rundepcheck(self, data):
61 self.abisaferecipes = (data.getVar("SIGGEN_EXCLUDERECIPES_ABISAFE", True) or "").split() 66 self.abisaferecipes = (data.getVar("SIGGEN_EXCLUDERECIPES_ABISAFE", True) or "").split()
67 self.saferecipedeps = (data.getVar("SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS", True) or "").split()
62 pass 68 pass
63 def rundep_check(self, fn, recipename, task, dep, depname, dataCache = None): 69 def rundep_check(self, fn, recipename, task, dep, depname, dataCache = None):
64 return sstate_rundepfilter(self, fn, recipename, task, dep, depname, dataCache) 70 return sstate_rundepfilter(self, fn, recipename, task, dep, depname, dataCache)