From: Bill Pittman Date: Tue, 15 Feb 2022 16:54:20 +0000 (+0000) Subject: wic: Use custom kernel path if provided X-Git-Tag: 2021-04.6-hardknott~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcef80623f015c006778edee5cf40dad063e51db;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git wic: Use custom kernel path if provided If the custom kernel path is provided in options, then use that path instead of the default path. Signed-off-by: Bill Pittman Signed-off-by: Richard Purdie (cherry picked from commit 1068102216a894c467f71f6046fdb37d5577545c) Signed-off-by: Anuj Mittal --- diff --git a/scripts/wic b/scripts/wic index 6547abe0e9c..c0bc0e6fe8b 100755 --- a/scripts/wic +++ b/scripts/wic @@ -159,6 +159,9 @@ def wic_create_subcommand(options, usage_str): "(Use -e/--image-name to specify it)") native_sysroot = options.native_sysroot + if options.kernel_dir: + kernel_dir = options.kernel_dir + if not options.vars_dir and (not native_sysroot or not os.path.isdir(native_sysroot)): logger.info("Building wic-tools...\n") subprocess.check_call(["bitbake", "wic-tools"])