diff options
Diffstat (limited to 'scripts/yocto-check-layer')
| -rwxr-xr-x | scripts/yocto-check-layer | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/yocto-check-layer b/scripts/yocto-check-layer index f3cf139d8a..0e5b75b1f7 100755 --- a/scripts/yocto-check-layer +++ b/scripts/yocto-check-layer | |||
| @@ -24,7 +24,7 @@ import scriptpath | |||
| 24 | scriptpath.add_oe_lib_path() | 24 | scriptpath.add_oe_lib_path() |
| 25 | scriptpath.add_bitbake_lib_path() | 25 | scriptpath.add_bitbake_lib_path() |
| 26 | 26 | ||
| 27 | from checklayer import LayerType, detect_layers, add_layers, add_layer_dependencies, get_layer_dependencies, get_signatures, check_bblayers | 27 | from checklayer import LayerType, detect_layers, add_layers, add_layer_dependencies, get_layer_dependencies, get_signatures, check_bblayers, sanity_check_layers |
| 28 | from oeqa.utils.commands import get_bb_vars | 28 | from oeqa.utils.commands import get_bb_vars |
| 29 | 29 | ||
| 30 | PROGNAME = 'yocto-check-layer' | 30 | PROGNAME = 'yocto-check-layer' |
| @@ -119,6 +119,10 @@ def main(): | |||
| 119 | for l in dep_layers: | 119 | for l in dep_layers: |
| 120 | dump_layer_debug(l) | 120 | dump_layer_debug(l) |
| 121 | 121 | ||
| 122 | if not sanity_check_layers(additional_layers + dep_layers, logger): | ||
| 123 | logger.error("Failed layer validation") | ||
| 124 | return 1 | ||
| 125 | |||
| 122 | logger.info("Detected layers:") | 126 | logger.info("Detected layers:") |
| 123 | for layer in layers: | 127 | for layer in layers: |
| 124 | if layer['type'] == LayerType.ERROR_BSP_DISTRO: | 128 | if layer['type'] == LayerType.ERROR_BSP_DISTRO: |
