diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-10 15:18:38 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-11 22:39:19 +0100 |
commit | 38deb04a384f8e81d23dd6f088478632dfa62676 (patch) | |
tree | 33acd55f535a8f71a6b75797947e6a314f9243f0 /bitbake/lib/bb/cookerdata.py | |
parent | 433cff7297cc60528f003add2b495e218b2d392c (diff) | |
download | poky-38deb04a384f8e81d23dd6f088478632dfa62676.tar.gz |
bitbake: cookerdata: Improve missing core layer error message
If the core layer is missing from bblayers.conf, the message the user sees is
hard to understand. Improve it.
[YOCTO #14340]
(Bitbake rev: 5815a7258ebb8a989e0c6f5798853559d9413f02)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cookerdata.py')
-rw-r--r-- | bitbake/lib/bb/cookerdata.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cookerdata.py b/bitbake/lib/bb/cookerdata.py index 1c1e008c6b..e54858cf02 100644 --- a/bitbake/lib/bb/cookerdata.py +++ b/bitbake/lib/bb/cookerdata.py | |||
@@ -396,6 +396,8 @@ class CookerDataBuilder(object): | |||
396 | if c in collections_tmp: | 396 | if c in collections_tmp: |
397 | bb.fatal("Found duplicated BBFILE_COLLECTIONS '%s', check bblayers.conf or layer.conf to fix it." % c) | 397 | bb.fatal("Found duplicated BBFILE_COLLECTIONS '%s', check bblayers.conf or layer.conf to fix it." % c) |
398 | compat = set((data.getVar("LAYERSERIES_COMPAT_%s" % c) or "").split()) | 398 | compat = set((data.getVar("LAYERSERIES_COMPAT_%s" % c) or "").split()) |
399 | if compat and not layerseries: | ||
400 | bb.fatal("No core layer found to work with layer '%s'. Missing entry in bblayers.conf?" % c) | ||
399 | if compat and not (compat & layerseries): | 401 | if compat and not (compat & layerseries): |
400 | bb.fatal("Layer %s is not compatible with the core layer which only supports these series: %s (layer is compatible with %s)" | 402 | bb.fatal("Layer %s is not compatible with the core layer which only supports these series: %s (layer is compatible with %s)" |
401 | % (c, " ".join(layerseries), " ".join(compat))) | 403 | % (c, " ".join(layerseries), " ".join(compat))) |