diff options
| author | Ross Burton <ross@burtonini.com> | 2022-01-24 16:25:43 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-02-01 07:31:17 +0000 |
| commit | f2666fbc7f644451dd4cf2ef16c18cbf2444f431 (patch) | |
| tree | 3312a3415a9c7379fb8a150cd6734d9cbf901bcf /scripts | |
| parent | e2340a68c5a719a14967936fe2ec75d5f3045eff (diff) | |
| download | poky-f2666fbc7f644451dd4cf2ef16c18cbf2444f431.tar.gz | |
yocto-check-layer: add debug output for the layers that were found
When debugging weird yocto-check-layer output it is useful to know
what the tool found when looking for layers.
(From OE-Core rev: 711e2d4d7baf36f8497741c14268d7f72d0db016)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/yocto-check-layer | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/yocto-check-layer b/scripts/yocto-check-layer index 2445ad5e43..f3cf139d8a 100755 --- a/scripts/yocto-check-layer +++ b/scripts/yocto-check-layer | |||
| @@ -41,6 +41,12 @@ def test_layer(td, layer, test_software_layer_signatures): | |||
| 41 | tc.loadTests(CASES_PATHS) | 41 | tc.loadTests(CASES_PATHS) |
| 42 | return tc.runTests() | 42 | return tc.runTests() |
| 43 | 43 | ||
| 44 | def dump_layer_debug(layer): | ||
| 45 | logger.debug("Found layer %s (%s)" % (layer["name"], layer["path"])) | ||
| 46 | collections = layer.get("collections", {}) | ||
| 47 | if collections: | ||
| 48 | logger.debug("%s collections: %s" % (layer["name"], ", ".join(collections))) | ||
| 49 | |||
| 44 | def main(): | 50 | def main(): |
| 45 | parser = argparse.ArgumentParser( | 51 | parser = argparse.ArgumentParser( |
| 46 | description="Yocto Project layer checking tool", | 52 | description="Yocto Project layer checking tool", |
| @@ -106,6 +112,13 @@ def main(): | |||
| 106 | else: | 112 | else: |
| 107 | dep_layers = layers | 113 | dep_layers = layers |
| 108 | 114 | ||
| 115 | logger.debug("Found additional layers:") | ||
| 116 | for l in additional_layers: | ||
| 117 | dump_layer_debug(l) | ||
| 118 | logger.debug("Found dependency layers:") | ||
| 119 | for l in dep_layers: | ||
| 120 | dump_layer_debug(l) | ||
| 121 | |||
| 109 | logger.info("Detected layers:") | 122 | logger.info("Detected layers:") |
| 110 | for layer in layers: | 123 | for layer in layers: |
| 111 | if layer['type'] == LayerType.ERROR_BSP_DISTRO: | 124 | if layer['type'] == LayerType.ERROR_BSP_DISTRO: |
