diff options
| author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-07-14 15:33:02 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-17 14:01:37 +0100 |
| commit | 116e14fc4531d63ad0872f2c5218bad04bdfb348 (patch) | |
| tree | ded7b049a318242fcf6265001c91163696a6f470 | |
| parent | 57a334c10a24938df2e1205495154fc0c1a0df7b (diff) | |
| download | poky-116e14fc4531d63ad0872f2c5218bad04bdfb348.tar.gz | |
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>
| -rwxr-xr-x | scripts/wic | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/wic b/scripts/wic index b8d2a866e1..02bc82ce42 100755 --- a/scripts/wic +++ b/scripts/wic | |||
| @@ -164,15 +164,15 @@ def wic_create_subcommand(options, usage_str): | |||
| 164 | "(Use -e/--image-name to specify it)") | 164 | "(Use -e/--image-name to specify it)") |
| 165 | native_sysroot = options.native_sysroot | 165 | native_sysroot = options.native_sysroot |
| 166 | 166 | ||
| 167 | if not native_sysroot or not os.path.isdir(native_sysroot): | 167 | if not options.vars_dir and (not native_sysroot or not os.path.isdir(native_sysroot)): |
| 168 | logger.info("Building wic-tools...\n") | 168 | logger.info("Building wic-tools...\n") |
| 169 | if bitbake_main(BitBakeConfigParameters("bitbake wic-tools".split()), | 169 | if bitbake_main(BitBakeConfigParameters("bitbake wic-tools".split()), |
| 170 | cookerdata.CookerConfiguration()): | 170 | cookerdata.CookerConfiguration()): |
| 171 | raise WicError("bitbake wic-tools failed") | 171 | raise WicError("bitbake wic-tools failed") |
| 172 | native_sysroot = get_bitbake_var("RECIPE_SYSROOT_NATIVE", "wic-tools") | 172 | native_sysroot = get_bitbake_var("RECIPE_SYSROOT_NATIVE", "wic-tools") |
| 173 | if not native_sysroot: | 173 | |
| 174 | raise WicError("Unable to find the location of the native " | 174 | if not native_sysroot: |
| 175 | "tools sysroot to use") | 175 | raise WicError("Unable to find the location of the native tools sysroot") |
| 176 | 176 | ||
| 177 | wks_file = options.wks_file | 177 | wks_file = options.wks_file |
| 178 | 178 | ||
