aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorChang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>2017-06-05 16:43:55 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-06-05 13:33:14 +0100
commit705ab252e631903e6d2e46202b419a9e8adcd861 (patch)
treea6ae92b5ba14a5b8df26e2874226e93e6eb70983 /bin
parent2e35de1f19dc73a61a18a3eb186efede078d597d (diff)
downloadbitbake-705ab252e631903e6d2e46202b419a9e8adcd861.tar.gz
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] 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 'bin')
-rwxr-xr-xbin/bitbake-layers1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/bitbake-layers b/bin/bitbake-layers
index 2b05d2847..04e6bec25 100755
--- a/bin/bitbake-layers
+++ b/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()