diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-02-23 10:12:48 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-02-23 22:52:22 +0000 |
commit | 26882fdd6718b4f5ceb970dd9e1e7ee8c9273f17 (patch) | |
tree | e674f8e17c3178eb575d09577037e2bfc8c93f21 /meta/lib/oe/sstatesig.py | |
parent | 77988c32f1c9b3eb9248ac6eb296fb8f4c833752 (diff) | |
download | poky-26882fdd6718b4f5ceb970dd9e1e7ee8c9273f17.tar.gz |
sstatesig.py: Move package exclusion list to the layer config
its desireable for other layers to be able to append to the list of packages
with 'safe ABI's which are excluded from the sstate signatures.
I can't emphasise enough how careful you need to be with this list, anything
excluded here needs to be things which don't change interface and are consistent
between different machines.
(From OE-Core rev: 5adef35691a956c3071c0a1ed1caf6b58d1ec5a1)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/sstatesig.py')
-rw-r--r-- | meta/lib/oe/sstatesig.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py index 5a64882fba..7b80c18b63 100644 --- a/meta/lib/oe/sstatesig.py +++ b/meta/lib/oe/sstatesig.py | |||
@@ -1,6 +1,6 @@ | |||
1 | import bb.siggen | 1 | import bb.siggen |
2 | 2 | ||
3 | def sstate_rundepfilter(fn, recipename, task, dep, depname, dataCache): | 3 | def sstate_rundepfilter(siggen, fn, recipename, task, dep, depname, dataCache): |
4 | # Return True if we should keep the dependency, False to drop it | 4 | # Return True if we should keep the dependency, False to drop it |
5 | def isNative(x): | 5 | def isNative(x): |
6 | return x.endswith("-native") | 6 | return x.endswith("-native") |
@@ -30,7 +30,7 @@ def sstate_rundepfilter(fn, recipename, task, dep, depname, dataCache): | |||
30 | return False | 30 | return False |
31 | 31 | ||
32 | # Exclude well defined machine specific configurations which don't change ABI | 32 | # Exclude well defined machine specific configurations which don't change ABI |
33 | if depname in ['sysvinit-inittab', 'shadow-securetty', 'opkg-config-base', 'netbase', 'formfactor', 'xserver-xf86-config', 'pointercal', 'base-files']: | 33 | if depname in siggen.abisaferecipes: |
34 | return False | 34 | return False |
35 | 35 | ||
36 | # Kernel modules are well namespaced. We don't want to depend on the kernel's checksum | 36 | # Kernel modules are well namespaced. We don't want to depend on the kernel's checksum |
@@ -50,16 +50,18 @@ def sstate_rundepfilter(fn, recipename, task, dep, depname, dataCache): | |||
50 | class SignatureGeneratorOEBasic(bb.siggen.SignatureGeneratorBasic): | 50 | class SignatureGeneratorOEBasic(bb.siggen.SignatureGeneratorBasic): |
51 | name = "OEBasic" | 51 | name = "OEBasic" |
52 | def init_rundepcheck(self, data): | 52 | def init_rundepcheck(self, data): |
53 | self.abisaferecipes = (data.getVar("SIGGEN_EXCLUDERECIPES_ABISAFE", True) or "").split() | ||
53 | pass | 54 | pass |
54 | def rundep_check(self, fn, recipename, task, dep, depname, dataCache = None): | 55 | def rundep_check(self, fn, recipename, task, dep, depname, dataCache = None): |
55 | return sstate_rundepfilter(fn, recipename, task, dep, depname, dataCache) | 56 | return sstate_rundepfilter(self, fn, recipename, task, dep, depname, dataCache) |
56 | 57 | ||
57 | class SignatureGeneratorOEBasicHash(bb.siggen.SignatureGeneratorBasicHash): | 58 | class SignatureGeneratorOEBasicHash(bb.siggen.SignatureGeneratorBasicHash): |
58 | name = "OEBasicHash" | 59 | name = "OEBasicHash" |
59 | def init_rundepcheck(self, data): | 60 | def init_rundepcheck(self, data): |
61 | self.abisaferecipes = (data.getVar("SIGGEN_EXCLUDERECIPES_ABISAFE", True) or "").split() | ||
60 | pass | 62 | pass |
61 | def rundep_check(self, fn, recipename, task, dep, depname, dataCache = None): | 63 | def rundep_check(self, fn, recipename, task, dep, depname, dataCache = None): |
62 | return sstate_rundepfilter(fn, recipename, task, dep, depname, dataCache) | 64 | return sstate_rundepfilter(self, fn, recipename, task, dep, depname, dataCache) |
63 | 65 | ||
64 | # Insert these classes into siggen's namespace so it can see and select them | 66 | # Insert these classes into siggen's namespace so it can see and select them |
65 | bb.siggen.SignatureGeneratorOEBasic = SignatureGeneratorOEBasic | 67 | bb.siggen.SignatureGeneratorOEBasic = SignatureGeneratorOEBasic |