diff options
Diffstat (limited to 'scripts/lib/checklayer')
| -rw-r--r-- | scripts/lib/checklayer/__init__.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/lib/checklayer/__init__.py b/scripts/lib/checklayer/__init__.py index 6c2b86a79a..63952616ba 100644 --- a/scripts/lib/checklayer/__init__.py +++ b/scripts/lib/checklayer/__init__.py | |||
| @@ -46,16 +46,16 @@ def _get_layer_collections(layer_path, lconf=None, data=None): | |||
| 46 | raise LayerError(exc) | 46 | raise LayerError(exc) |
| 47 | ldata.expandVarref('LAYERDIR') | 47 | ldata.expandVarref('LAYERDIR') |
| 48 | 48 | ||
| 49 | collections = (ldata.getVar('BBFILE_COLLECTIONS', True) or '').split() | 49 | collections = (ldata.getVar('BBFILE_COLLECTIONS') or '').split() |
| 50 | if not collections: | 50 | if not collections: |
| 51 | name = os.path.basename(layer_path) | 51 | name = os.path.basename(layer_path) |
| 52 | collections = [name] | 52 | collections = [name] |
| 53 | 53 | ||
| 54 | collections = {c: {} for c in collections} | 54 | collections = {c: {} for c in collections} |
| 55 | for name in collections: | 55 | for name in collections: |
| 56 | priority = ldata.getVar('BBFILE_PRIORITY_%s' % name, True) | 56 | priority = ldata.getVar('BBFILE_PRIORITY_%s' % name) |
| 57 | pattern = ldata.getVar('BBFILE_PATTERN_%s' % name, True) | 57 | pattern = ldata.getVar('BBFILE_PATTERN_%s' % name) |
| 58 | depends = ldata.getVar('LAYERDEPENDS_%s' % name, True) | 58 | depends = ldata.getVar('LAYERDEPENDS_%s' % name) |
| 59 | collections[name]['priority'] = priority | 59 | collections[name]['priority'] = priority |
| 60 | collections[name]['pattern'] = pattern | 60 | collections[name]['pattern'] = pattern |
| 61 | collections[name]['depends'] = depends | 61 | collections[name]['depends'] = depends |
