Message ID | bcef80623f015c006778edee5cf40dad063e51db.1647356478.git.anuj.mittal@intel.com |
---|---|
State | Accepted, archived |
Commit | bcef80623f015c006778edee5cf40dad063e51db |
Headers | show |
Series | [hardknott,1/6] patch.py: Prevent git repo reinitialization | expand |
diff --git a/scripts/wic b/scripts/wic index 6547abe0e9..c0bc0e6fe8 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"])