summaryrefslogtreecommitdiffstats
path: root/scripts/wic
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/wic')
-rwxr-xr-xscripts/wic7
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/wic b/scripts/wic
index 731481007c..15cc9b31ef 100755
--- a/scripts/wic
+++ b/scripts/wic
@@ -134,8 +134,8 @@ def wic_create_subcommand(args, usage_str):
134 bootimg_dir = staging_data_dir = hdddir = "" 134 bootimg_dir = staging_data_dir = hdddir = ""
135 135
136 if options.image_name: 136 if options.image_name:
137 (rootfs_dir, kernel_dir, bootimg_dir, hdddir, \ 137 (rootfs_dir, kernel_dir, hdddir, staging_data_dir, native_sysroot) = \
138 staging_data_dir, native_sysroot) = find_artifacts(options.image_name) 138 find_artifacts(options.image_name)
139 139
140 wks_file = args[0] 140 wks_file = args[0]
141 141
@@ -172,8 +172,7 @@ def wic_create_subcommand(args, usage_str):
172 not_found = not_found_dir = "" 172 not_found = not_found_dir = ""
173 if not os.path.isdir(rootfs_dir): 173 if not os.path.isdir(rootfs_dir):
174 (not_found, not_found_dir) = ("rootfs-dir", rootfs_dir) 174 (not_found, not_found_dir) = ("rootfs-dir", rootfs_dir)
175 elif not os.path.isdir(bootimg_dir) and not os.path.isdir(hdddir) \ 175 elif not os.path.isdir(hdddir) and not os.path.isdir(staging_data_dir):
176 and not os.path.isdir(staging_data_dir):
177 (not_found, not_found_dir) = ("bootimg-dir", bootimg_dir) 176 (not_found, not_found_dir) = ("bootimg-dir", bootimg_dir)
178 elif not os.path.isdir(kernel_dir): 177 elif not os.path.isdir(kernel_dir):
179 (not_found, not_found_dir) = ("kernel-dir", kernel_dir) 178 (not_found, not_found_dir) = ("kernel-dir", kernel_dir)