diff options
author | Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com> | 2017-06-05 16:43:55 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-06 19:52:51 +0100 |
commit | 576821ea0a7558b626ccc87e9ae0e9ee40864956 (patch) | |
tree | 436e9076e21da7dca0922e47986e6aec6f603883 /bitbake/bin/bitbake-layers | |
parent | 1125621b921763ff73614aae228d2d5dbb5bd2ce (diff) | |
download | poky-576821ea0a7558b626ccc87e9ae0e9ee40864956.tar.gz |
bitbake: bitbake-layers: check layer dependencies before adding
In the original implementation, "bitbake-layers add-layers <layer>"
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 <stanley.cheong.kwan.phoong@intel.com>
Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin/bitbake-layers')
-rwxr-xr-x | bitbake/bin/bitbake-layers | 1 |
1 files changed, 1 insertions, 0 deletions
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(): | |||
43 | add_help=False) | 43 | add_help=False) |
44 | parser.add_argument('-d', '--debug', help='Enable debug output', action='store_true') | 44 | parser.add_argument('-d', '--debug', help='Enable debug output', action='store_true') |
45 | parser.add_argument('-q', '--quiet', help='Print only errors', action='store_true') | 45 | parser.add_argument('-q', '--quiet', help='Print only errors', action='store_true') |
46 | parser.add_argument('-F', '--force', help='Force add without recipe parse verification', action='store_true') | ||
46 | parser.add_argument('--color', choices=['auto', 'always', 'never'], default='auto', help='Colorize output (where %(metavar)s is %(choices)s)', metavar='COLOR') | 47 | parser.add_argument('--color', choices=['auto', 'always', 'never'], default='auto', help='Colorize output (where %(metavar)s is %(choices)s)', metavar='COLOR') |
47 | 48 | ||
48 | global_args, unparsed_args = parser.parse_known_args() | 49 | global_args, unparsed_args = parser.parse_known_args() |