diff options
Diffstat (limited to 'scripts/wic')
-rwxr-xr-x | scripts/wic | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/wic b/scripts/wic index 81fc85d693..b8d2a866e1 100755 --- a/scripts/wic +++ b/scripts/wic | |||
@@ -154,8 +154,10 @@ def wic_create_subcommand(options, usage_str): | |||
154 | rootfs_dir = get_bitbake_var("IMAGE_ROOTFS", options.image_name) | 154 | rootfs_dir = get_bitbake_var("IMAGE_ROOTFS", options.image_name) |
155 | kernel_dir = get_bitbake_var("DEPLOY_DIR_IMAGE", options.image_name) | 155 | kernel_dir = get_bitbake_var("DEPLOY_DIR_IMAGE", options.image_name) |
156 | bootimg_dir = get_bitbake_var("STAGING_DATADIR", options.image_name) | 156 | bootimg_dir = get_bitbake_var("STAGING_DATADIR", options.image_name) |
157 | native_sysroot = get_bitbake_var("RECIPE_SYSROOT_NATIVE", | 157 | |
158 | options.image_name) #, cache=False) | 158 | native_sysroot = options.native_sysroot |
159 | if options.vars_dir and not native_sysroot: | ||
160 | native_sysroot = get_bitbake_var("RECIPE_SYSROOT_NATIVE", options.image_name) | ||
159 | else: | 161 | else: |
160 | if options.build_rootfs: | 162 | if options.build_rootfs: |
161 | raise WicError("Image name is not specified, exiting. " | 163 | raise WicError("Image name is not specified, exiting. " |