summaryrefslogtreecommitdiffstats
path: root/scripts/wic
diff options
context:
space:
mode:
authorBill Pittman <bill.pittman@ni.com>2022-02-15 16:54:20 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-08 09:42:59 +0000
commit1068102216a894c467f71f6046fdb37d5577545c (patch)
tree386eb2ab897b14591a0ac1409ee3f16725914eaa /scripts/wic
parente3d3867d677a08b718e347e4d10a986cdd216493 (diff)
downloadopenembedded-core-1068102216a894c467f71f6046fdb37d5577545c.tar.gz
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 <bill.pittman@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/wic')
-rwxr-xr-xscripts/wic3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/wic b/scripts/wic
index 4bcff8f79c..aee63a45aa 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"])