Skip to contentSkip to conversation

yocto-check-layer: Only note a layer without a conf/layer.conf (versus error)

PATCH New Richard Purdie 1 participant 1 message May 6, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 yocto-check-layer: Only note a layer without a conf/layer.conf (versus error)

From: Bruce Ashfield <[email protected]>

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.

---
 scripts/yocto-check-layer | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/yocto-check-layer +1 -1
index deba3cb4f8c..44e77b73d0d 100755
@@ -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:
Signature · 1 line
2.30.2