mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
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. (From OE-Core rev: bcef80623f015c006778edee5cf40dad063e51db) 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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
d5424469d7
commit
1adce7ef96
|
@ -159,6 +159,9 @@ def wic_create_subcommand(options, usage_str):
|
||||||
"(Use -e/--image-name to specify it)")
|
"(Use -e/--image-name to specify it)")
|
||||||
native_sysroot = options.native_sysroot
|
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)):
|
if not options.vars_dir and (not native_sysroot or not os.path.isdir(native_sysroot)):
|
||||||
logger.info("Building wic-tools...\n")
|
logger.info("Building wic-tools...\n")
|
||||||
subprocess.check_call(["bitbake", "wic-tools"])
|
subprocess.check_call(["bitbake", "wic-tools"])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user