mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
wic: build wic-tools only if wic is run manually
When wic can't find native sysroot it tries to build wic-tools However, it's not possible when wic is run from bitbake. Moreover, it's not even feasible anymore as wic-tools should be used only when wic is run manually. Checked if wic is run manually before building wic-tools. (From OE-Core rev: 522ac21831944b06fbcc372ac61762576d792c22) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
57a334c10a
commit
116e14fc45
+4
-4
@@ -164,15 +164,15 @@ 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 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")
|
||||||
if bitbake_main(BitBakeConfigParameters("bitbake wic-tools".split()),
|
if bitbake_main(BitBakeConfigParameters("bitbake wic-tools".split()),
|
||||||
cookerdata.CookerConfiguration()):
|
cookerdata.CookerConfiguration()):
|
||||||
raise WicError("bitbake wic-tools failed")
|
raise WicError("bitbake wic-tools failed")
|
||||||
native_sysroot = get_bitbake_var("RECIPE_SYSROOT_NATIVE", "wic-tools")
|
native_sysroot = get_bitbake_var("RECIPE_SYSROOT_NATIVE", "wic-tools")
|
||||||
if not native_sysroot:
|
|
||||||
raise WicError("Unable to find the location of the native "
|
if not native_sysroot:
|
||||||
"tools sysroot to use")
|
raise WicError("Unable to find the location of the native tools sysroot")
|
||||||
|
|
||||||
wks_file = options.wks_file
|
wks_file = options.wks_file
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user