From 576821ea0a7558b626ccc87e9ae0e9ee40864956 Mon Sep 17 00:00:00 2001 From: Chang Rebecca Swee Fun Date: Mon, 5 Jun 2017 16:43:55 +0800 Subject: bitbake: bitbake-layers: check layer dependencies before adding In the original implementation, "bitbake-layers add-layers " succeeded without error checking. This will further introduce failures in recipe parsing only when "bitbake" command is executed. Adding a meta layer without its dependency layer(s) should failed and exit the process gracefully. Added extra argument "-F" to force add a layer without checking layer dependency. [YOCTO #10913] (Bitbake rev: 705ab252e631903e6d2e46202b419a9e8adcd861) Signed-off-by: Phoong Stanley Cheong Kwan Signed-off-by: Chang Rebecca Swee Fun Signed-off-by: Richard Purdie --- bitbake/bin/bitbake-layers | 1 + 1 file changed, 1 insertion(+) (limited to 'bitbake/bin') diff --git a/bitbake/bin/bitbake-layers b/bitbake/bin/bitbake-layers index 2b05d28470..04e6bec251 100755 --- a/bitbake/bin/bitbake-layers +++ b/bitbake/bin/bitbake-layers @@ -43,6 +43,7 @@ def main(): add_help=False) parser.add_argument('-d', '--debug', help='Enable debug output', action='store_true') parser.add_argument('-q', '--quiet', help='Print only errors', action='store_true') + parser.add_argument('-F', '--force', help='Force add without recipe parse verification', action='store_true') parser.add_argument('--color', choices=['auto', 'always', 'never'], default='auto', help='Colorize output (where %(metavar)s is %(choices)s)', metavar='COLOR') global_args, unparsed_args = parser.parse_known_args() -- cgit v1.2.3-54-g00ecf