]> code.ossystems Code Review - openembedded-core.git/commitdiff
wic: Use custom kernel path if provided
authorBill Pittman <bill.pittman@ni.com>
Tue, 15 Feb 2022 16:54:20 +0000 (16:54 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 8 Mar 2022 09:42:59 +0000 (09:42 +0000)
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>
scripts/wic

index 4bcff8f79cbbe073af04152a688b98924f81bff4..aee63a45aacf2b4450621047d462804825a7bf8a 100755 (executable)
@@ -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"])