[oe-commits] [bitbake] branch master-next updated: cookerdata: Issue warning if layer doesn't set LAYERSERIES_COMPAT_x

git at git.openembedded.org git at git.openembedded.org
Fri Apr 6 10:01:01 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository bitbake.

The following commit(s) were added to refs/heads/master-next by this push:
     new 8188396  cookerdata: Issue warning if layer doesn't set LAYERSERIES_COMPAT_x
8188396 is described below

commit 818839694f1b6865365b8949cd5e8d0120ccecbe
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Fri Apr 6 10:58:48 2018 +0100

    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.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/cookerdata.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/bb/cookerdata.py b/lib/bb/cookerdata.py
index c67f012..b6b654c 100644
--- a/lib/bb/cookerdata.py
+++ b/lib/bb/cookerdata.py
@@ -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:
+                    bb.warn("Layer %s should set LAYERSERIES_COMPAT_%s to list the core layer names it is compatible with" % (c, c))
 
         if not data.getVar("BBPATH"):
             msg = "The BBPATH variable is not set"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list