diff options
| -rw-r--r-- | meta/conf/layer.conf | 1 | ||||
| -rw-r--r-- | meta/lib/oe/sstatesig.py | 10 |
2 files changed, 7 insertions, 4 deletions
diff --git a/meta/conf/layer.conf b/meta/conf/layer.conf index ad9540586c..c0c2930f0d 100644 --- a/meta/conf/layer.conf +++ b/meta/conf/layer.conf | |||
| @@ -18,3 +18,4 @@ PATH := "${PATH}:${COREBASE}/scripts" | |||
| 18 | 18 | ||
| 19 | QEMUIMAGETESTS := "${COREBASE}/scripts/qemuimage-tests" | 19 | QEMUIMAGETESTS := "${COREBASE}/scripts/qemuimage-tests" |
| 20 | 20 | ||
| 21 | SIGGEN_EXCLUDERECIPES_ABISAFE = "sysvinit-inittab shadow-securetty opkg-config-base netbase formfactor xserver-xf86-config pointercal base-files" | ||
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 |
