]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: cookerdata: Issue warning if layer doesn't set LAYERSERIES_COMPAT_x
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 6 Apr 2018 09:58:48 +0000 (10:58 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 6 Apr 2018 10:39:49 +0000 (11:39 +0100)
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>
bitbake/lib/bb/cookerdata.py

index c67f012b723754d55ed65b3a682499e656d0c28d..5df66e6173e2c38828c83a84102055cf818063b7 100644 (file)
@@ -396,6 +396,8 @@ class CookerDataBuilder(object):
                 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)))
+                elif not compat and not data.getVar("BB_WORKERCONTEXT"):
+                    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))
 
         if not data.getVar("BBPATH"):
             msg = "The BBPATH variable is not set"