]> code.ossystems Code Review - openembedded-core.git/commitdiff
yocto-check-layer: Only note a layer without a conf/layer.conf (versus error)
authorBruce Ashfield <bruce.ashfield@gmail.com>
Wed, 5 May 2021 02:30:20 +0000 (22:30 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 6 May 2021 15:55:31 +0000 (16:55 +0100)
Dynamic layers may have a conf directory, but don't need (or
want) a conf/layer.conf

This isn't an error, so we can just log it and indicate the
layer is being skipped.

A full layer without a conf file isn't all that useable, so we
aren't letting anything subtle slip through by just logging
it.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/yocto-check-layer

index deba3cb4f8c912b668edf767902cec2187b122a2..44e77b73d0d9f39eaf9a4a7ae511a8fa18338530 100755 (executable)
@@ -112,7 +112,7 @@ def main():
                      % layer['name'])
             layers.remove(layer)
         elif layer['type'] == LayerType.ERROR_NO_LAYER_CONF:
-            logger.error("%s: Don't have conf/layer.conf file."\
+            logger.info("%s: Doesn't have conf/layer.conf file, so ignoring"\
                      % layer['name'])
             layers.remove(layer)
         else: