summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-01-16 22:42:29 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-23 12:03:51 +0000
commitde9d7d14cd03e4dfc5812890a53c79b706b56537 (patch)
tree5e208824e8ca728fc9a104b4f0ce56c7d8188649 /scripts
parent52ce14d5ea667ffd319fdb3e147b6eb29505cf8e (diff)
downloadopenembedded-core-contrib-de9d7d14cd03e4dfc5812890a53c79b706b56537.tar.gz
wic: fix getting path of native sysroot
wic used STAGING_DIR_NATIVE variable as a path to native sysroot. This doesn't work with recipe specific sysroots as STAGING_DIR_NATIVE points to the native sysroot of the current recipe. Used RECIPE_SYSROOT_NATIVE variable of wic-tools recipe to fix the issue. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/wic3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/wic b/scripts/wic
index 1ad16665e7..f09dbc2e00 100755
--- a/scripts/wic
+++ b/scripts/wic
@@ -175,8 +175,7 @@ def wic_create_subcommand(args, usage_str):
rootfs_dir = get_bitbake_var("IMAGE_ROOTFS", options.image_name)
kernel_dir = get_bitbake_var("DEPLOY_DIR_IMAGE", options.image_name)
- native_sysroot = get_bitbake_var("STAGING_DIR_NATIVE",
- options.image_name)
+ native_sysroot = os.path.join(get_bitbake_var("RECIPE_SYSROOT_NATIVE", "wic-tools"))
else:
if options.build_rootfs:
print("Image name is not specified, exiting. (Use -e/--image-name to specify it)\n")