diff options
Diffstat (limited to 'scripts/lib')
-rw-r--r-- | scripts/lib/compatlayer/__init__.py | 7 |
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 | ||
143 | def add_layer(bblayersconf, layer, layers, logger): | 143 | def 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 | ||
195 | def 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 | ||