]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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)
committerAnuj Mittal <anuj.mittal@intel.com>
Tue, 15 Mar 2022 15:00:09 +0000 (23:00 +0800)
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>
(cherry picked from commit 1068102216a894c467f71f6046fdb37d5577545c)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
scripts/wic

index 6547abe0e9c61543f5f6edc855e0805fa105dc38..c0bc0e6fe8b9d4790649ee04f16c5ee966a84753 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"])