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]

(From OE-Core rev: cde30d70b04eb66bff66a351ddf733022e98ddab)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Aníbal Limón 2017-03-20 15:38:00 -06:00 committed by Richard Purdie
parent 07dd071bf6
commit 6786f662cd
1 changed files with 14 additions and 0 deletions

View File

@ -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: