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:15 +0100 |
commit | 5815a7258ebb8a989e0c6f5798853559d9413f02 (patch) | |
tree | e3d105b1dab8a7d5b6b1e0ef06adec140a6aeec4 | |
parent | 89e0b19ec0b245a6cd414088904c91808e8814ab (diff) | |
download | bitbake-5815a7258ebb8a989e0c6f5798853559d9413f02.tar.gz |
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]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/cookerdata.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bb/cookerdata.py b/lib/bb/cookerdata.py index 1c1e008c6..e54858cf0 100644 --- a/lib/bb/cookerdata.py +++ b/lib/bb/cookerdata.py @@ -396,6 +396,8 @@ class CookerDataBuilder(object): if c in collections_tmp: bb.fatal("Found duplicated BBFILE_COLLECTIONS '%s', check bblayers.conf or layer.conf to fix it." % c) compat = set((data.getVar("LAYERSERIES_COMPAT_%s" % c) or "").split()) + if compat and not layerseries: + bb.fatal("No core layer found to work with layer '%s'. Missing entry in bblayers.conf?" % c) if compat and not (compat & layerseries): bb.fatal("Layer %s is not compatible with the core layer which only supports these series: %s (layer is compatible with %s)" % (c, " ".join(layerseries), " ".join(compat))) |