summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2017-03-20 15:38:00 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-21 22:43:04 +0000
commitcde30d70b04eb66bff66a351ddf733022e98ddab (patch)
tree7e897a122cb2820bdc19d2e1870235ad464f67f8 /scripts
parentf91ccdeb8b0b3e4063ed2bf22215a25f8902cbd9 (diff)
downloadopenembedded-core-cde30d70b04eb66bff66a351ddf733022e98ddab.tar.gz
openembedded-core-cde30d70b04eb66bff66a351ddf733022e98ddab.tar.bz2
openembedded-core-cde30d70b04eb66bff66a351ddf733022e98ddab.zip
scripts/compatlayer: Add exclude of meta-world-pkgdata on get_signatures
The meta-world-pkgdata recipe can be modified when a layer is added may be can add recipes to world target, so exclude by default. [YOCTO #11162] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/compatlayer/__init__.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/lib/compatlayer/__init__.py b/scripts/lib/compatlayer/__init__.py
index a7eb862531..888d303996 100644
--- a/scripts/lib/compatlayer/__init__.py
+++ b/scripts/lib/compatlayer/__init__.py
@@ -133,6 +133,11 @@ def get_signatures(builddir, failsafe=False):
import subprocess
import re
+ # some recipes needs to be excluded like meta-world-pkgdata
+ # because a layer can add recipes to a world build so signature
+ # will be change
+ exclude_recipes = ('meta-world-pkgdata',)
+
sigs = {}
cmd = 'bitbake '
@@ -153,6 +158,15 @@ def get_signatures(builddir, failsafe=False):
line = line.strip()
s = sig_regex.match(line)
if s:
+ exclude = False
+ for er in exclude_recipes:
+ (recipe, task) = s.group('task').split(':')
+ if er == recipe:
+ exclude = True
+ break
+ if exclude:
+ continue
+
sigs[s.group('task')] = s.group('hash')
if not sigs: