[PATCH v2] yocto-check-layer: add debug output for the layers that were found


Ross Burton <ross@...>
 

When debugging weird yocto-check-layer output it is useful to know
what the tool found when looking for layers.

Signed-off-by: Ross Burton <ross.burton@...>
---
scripts/yocto-check-layer | 13 +++++++++++++
1 file changed, 13 insertions(+)

diff --git a/scripts/yocto-check-layer b/scripts/yocto-check-layer
index 2445ad5e43f..393bee794f3 100755
--- a/scripts/yocto-check-layer
+++ b/scripts/yocto-check-layer
@@ -41,6 +41,12 @@ def test_layer(td, layer, test_software_layer_signatur=
es):
tc.loadTests(CASES_PATHS)
return tc.runTests()
=20
+def dump_layer_debug(layer):
+ logger.debug("Found additional layer %s (%s)" % (layer["name"], laye=
r["path"]))
+ collections =3D layer.get("collections", {})
+ if collections:
+ logger.debug("%s collections: %s" % (layer["name"], ", ".join(co=
llections)))
+
def main():
parser =3D argparse.ArgumentParser(
description=3D"Yocto Project layer checking tool",
@@ -106,6 +112,13 @@ def main():
else:
dep_layers =3D layers
=20
+ logger.debug("Found additional layers:")
+ for l in additional_layers:
+ dump_layer_debug(l)
+ logger.debug("Found dependency layers:")
+ for l in dep_layers:
+ dump_layer_debug(l)
+
logger.info("Detected layers:")
for layer in layers:
if layer['type'] =3D=3D LayerType.ERROR_BSP_DISTRO:
--=20
2.25.1

Join openembedded-core@lists.openembedded.org to automatically receive all group messages.