From 42d0334aa8bf59937262f957f2ea04abc271138b Mon Sep 17 00:00:00 2001 From: Tom Zanussi Date: Wed, 29 Oct 2014 17:04:23 -0500 Subject: wic: Remove special-case bootimg_dir The first iterations of wic very shortsightedly catered to two specific use-cases and added special-purpose params for those cases so that they could be directly given their corresponding boot artifacts. (hdddir and staging_data_dir). As more use-cases are added, it becomes rather obvious that such a scheme doens't scale, and additionally causes confusion for plugin writers. This removes those special cases and states explicitly in the help text that plugins are responsible for locating their own boot artifacts. (From OE-Core rev: 6ba3eb5ff7c47aee6b3419fb3a348a634fe74ac9) Signed-off-by: Tom Zanussi Signed-off-by: Richard Purdie --- scripts/wic | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'scripts/wic') diff --git a/scripts/wic b/scripts/wic index 15cc9b31ef..e7df60f28e 100755 --- a/scripts/wic +++ b/scripts/wic @@ -131,11 +131,11 @@ def wic_create_subcommand(args, usage_str): sys.exit(1) set_bitbake_env_lines(bitbake_env_lines) - bootimg_dir = staging_data_dir = hdddir = "" + bootimg_dir = "" if options.image_name: - (rootfs_dir, kernel_dir, hdddir, staging_data_dir, native_sysroot) = \ - find_artifacts(options.image_name) + (rootfs_dir, kernel_dir, bootimg_dir, native_sysroot) \ + = find_artifacts(options.image_name) wks_file = args[0] @@ -172,8 +172,6 @@ def wic_create_subcommand(args, usage_str): not_found = not_found_dir = "" if not os.path.isdir(rootfs_dir): (not_found, not_found_dir) = ("rootfs-dir", rootfs_dir) - elif not os.path.isdir(hdddir) and not os.path.isdir(staging_data_dir): - (not_found, not_found_dir) = ("bootimg-dir", bootimg_dir) elif not os.path.isdir(kernel_dir): (not_found, not_found_dir) = ("kernel-dir", kernel_dir) elif not os.path.isdir(native_sysroot): @@ -197,8 +195,8 @@ def wic_create_subcommand(args, usage_str): rootfs_dir = rootfs_dir_to_args(krootfs_dir) wic_create(args, wks_file, rootfs_dir, bootimg_dir, kernel_dir, - native_sysroot, hdddir, staging_data_dir, scripts_path, - image_output_dir, options.debug, options.properties_file) + native_sysroot, scripts_path, image_output_dir, + options.debug, options.properties_file) def wic_list_subcommand(args, usage_str): -- cgit v1.2.3-54-g00ecf