[honister,3/6] wic: Use custom kernel path if provided

Message ID bced1ddc2358350a5df5b397be7a3ab7d64b08f6.1647222224.git.anuj.mittal@intel.com
State Accepted, archived
Commit bced1ddc2358350a5df5b397be7a3ab7d64b08f6
Headers show
Series [honister,1/6] sstate: inside the threadedpool don't write to the shared localdata | expand

Commit Message

Mittal, Anuj March 14, 2022, 2:02 a.m. UTC
From: Bill Pittman <bill.pittman@ni.com>

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 | 3 +++
 1 file changed, 3 insertions(+)

Patch

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"])