summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2017-03-30 21:30:29 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-04-05 23:22:13 +0100
commit6afe0e07ecc06aa6d2078e659970954beb639bef (patch)
tree97daaf3ea5c471d4b9f5308747202fca5ecd699a /scripts/lib
parentd2d019a11b48a4537b8ef73c0175302728c807a0 (diff)
downloadpoky-6afe0e07ecc06aa6d2078e659970954beb639bef.tar.gz
yocto-compat-layer.py: Fix the signature validation
The initial signatures need to be collected -after- the dependency layers have been added to the system. Otherwise changes that happen due to dependencies, outside of the layer being scanned, will show up as signature problems. The add_layer function was split into two pieces so that we can process the dependencies first, and then add the layer itself for the comparison. (From OE-Core rev: 4eb0932e755b7cb582a8db811aeed1397ecb92cc) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/compatlayer/__init__.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/lib/compatlayer/__init__.py b/scripts/lib/compatlayer/__init__.py
index 8d8bdfe939..86f86eb657 100644
--- a/scripts/lib/compatlayer/__init__.py
+++ b/scripts/lib/compatlayer/__init__.py
@@ -140,9 +140,7 @@ def _find_layer_depends(depend, layers):
140 return layer 140 return layer
141 return None 141 return None
142 142
143def add_layer(bblayersconf, layer, layers, logger): 143def add_layer_dependencies(bblayersconf, layer, layers, logger):
144 logger.info('Adding layer %s' % layer['name'])
145
146 def recurse_dependencies(depends, layer, layers, logger, ret = []): 144 def recurse_dependencies(depends, layer, layers, logger, ret = []):
147 logger.debug('Processing dependencies %s for layer %s.' % \ 145 logger.debug('Processing dependencies %s for layer %s.' % \
148 (depends, layer['name'])) 146 (depends, layer['name']))
@@ -192,7 +190,10 @@ def add_layer(bblayersconf, layer, layers, logger):
192 logger.info('Adding layer dependency %s' % layer_depend['name']) 190 logger.info('Adding layer dependency %s' % layer_depend['name'])
193 with open(bblayersconf, 'a+') as f: 191 with open(bblayersconf, 'a+') as f:
194 f.write("\nBBLAYERS += \"%s\"\n" % layer_depend['path']) 192 f.write("\nBBLAYERS += \"%s\"\n" % layer_depend['path'])
193 return True
195 194
195def add_layer(bblayersconf, layer, layers, logger):
196 logger.info('Adding layer %s' % layer['name'])
196 with open(bblayersconf, 'a+') as f: 197 with open(bblayersconf, 'a+') as f:
197 f.write("\nBBLAYERS += \"%s\"\n" % layer['path']) 198 f.write("\nBBLAYERS += \"%s\"\n" % layer['path'])
198 199