summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-10 15:18:38 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-24 10:13:32 +0100
commit1e9edf6d39216fcaa045b1ee4d6061f6ebae5439 (patch)
tree4cc946706ed6883a40f4f0b142d4f5f1fd22c61b /bitbake
parent8ef2caa0eb4a80e202729776f6dbd1b4f3d24ee4 (diff)
downloadpoky-1e9edf6d39216fcaa045b1ee4d6061f6ebae5439.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: b460667572994066921c1971f73c58c081463bfc) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 5815a7258ebb8a989e0c6f5798853559d9413f02) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/cookerdata.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cookerdata.py b/bitbake/lib/bb/cookerdata.py
index 24002b879f..d6206b7319 100644
--- a/bitbake/lib/bb/cookerdata.py
+++ b/bitbake/lib/bb/cookerdata.py
@@ -399,6 +399,8 @@ class CookerDataBuilder(object):
399 if c in collections_tmp: 399 if c in collections_tmp:
400 bb.fatal("Found duplicated BBFILE_COLLECTIONS '%s', check bblayers.conf or layer.conf to fix it." % c) 400 bb.fatal("Found duplicated BBFILE_COLLECTIONS '%s', check bblayers.conf or layer.conf to fix it." % c)
401 compat = set((data.getVar("LAYERSERIES_COMPAT_%s" % c) or "").split()) 401 compat = set((data.getVar("LAYERSERIES_COMPAT_%s" % c) or "").split())
402 if compat and not layerseries:
403 bb.fatal("No core layer found to work with layer '%s'. Missing entry in bblayers.conf?" % c)
402 if compat and not (compat & layerseries): 404 if compat and not (compat & layerseries):
403 bb.fatal("Layer %s is not compatible with the core layer which only supports these series: %s (layer is compatible with %s)" 405 bb.fatal("Layer %s is not compatible with the core layer which only supports these series: %s (layer is compatible with %s)"
404 % (c, " ".join(layerseries), " ".join(compat))) 406 % (c, " ".join(layerseries), " ".join(compat)))