summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cookerdata.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-04-06 10:58:48 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-04-06 11:39:49 +0100
commita0f22fd9712aa724f4e1e9a3ba4a2a9d6ce52403 (patch)
tree192f88386cdd6200fad1f33a1d8a3b1501398f62 /bitbake/lib/bb/cookerdata.py
parent0cd8d57ddf23241d62faa85a9579c387919024ca (diff)
downloadpoky-a0f22fd9712aa724f4e1e9a3ba4a2a9d6ce52403.tar.gz
bitbake: cookerdata: Issue warning if layer doesn't set LAYERSERIES_COMPAT_x
We'd like layers to set this variable so that we know which layers are compatible with which others, even if the branch is a generic un-updated "master" branch. Start printing a warning to highlight this issue. (Bitbake rev: cca81e33b58c390dcf5cc3a31555a43b79177166) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cookerdata.py')
-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 c67f012b72..5df66e6173 100644
--- a/bitbake/lib/bb/cookerdata.py
+++ b/bitbake/lib/bb/cookerdata.py
@@ -396,6 +396,8 @@ class CookerDataBuilder(object):
396 if compat and not (compat & layerseries): 396 if compat and not (compat & layerseries):
397 bb.fatal("Layer %s is not compatible with the core layer which only supports these series: %s (layer is compatible with %s)" 397 bb.fatal("Layer %s is not compatible with the core layer which only supports these series: %s (layer is compatible with %s)"
398 % (c, " ".join(layerseries), " ".join(compat))) 398 % (c, " ".join(layerseries), " ".join(compat)))
399 elif not compat and not data.getVar("BB_WORKERCONTEXT"):
400 bb.warn("Layer %s should set LAYERSERIES_COMPAT_%s in its conf/layer.conf file to list the core layer names it is compatible with." % (c, c))
399 401
400 if not data.getVar("BBPATH"): 402 if not data.getVar("BBPATH"):
401 msg = "The BBPATH variable is not set" 403 msg = "The BBPATH variable is not set"