summaryrefslogtreecommitdiffstats
path: root/scripts/wic
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-07-14 15:33:00 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-17 14:01:37 +0100
commitb6dd87f2a85300c1f621b4195e3f0357091bec33 (patch)
tree7ad7d48e1d99ce8bd91845f3efa727e066404e67 /scripts/wic
parent223d3b44c08c3522ef7c1d2f67f170e819b27c99 (diff)
downloadpoky-b6dd87f2a85300c1f621b4195e3f0357091bec33.tar.gz
wic: get rid of using wic-tools
At the moment, when building images with IMAGE_FSTYPES=wic one ends up depending on wic-tools and thus syslinux and grub-efi even when not using those at all. Ideally, building an image with wic should only build the tools and components really needed. The problem is that "wic-tools" is needed also for the manual invocations of wic, in which case everything that might be needed has to be built in advance. Replaced dependency on wic-tools with dependency to a much shorter set of tools that wic uses almost for any image: 'parted', 'gptfdisk', 'dosfstools' and 'mtools'. [YOCTO #11552] (From OE-Core rev: 33ca15b94dbe7204c556c4b5526edd529f6d85f4) 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>
Diffstat (limited to 'scripts/wic')
-rwxr-xr-xscripts/wic6
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. "