diff options
| -rwxr-xr-x | scripts/wic | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/wic b/scripts/wic index a7221c3610..08473d3df4 100755 --- a/scripts/wic +++ b/scripts/wic | |||
| @@ -143,6 +143,26 @@ def wic_create_subcommand(args, usage_str): | |||
| 143 | if not os.path.isdir(native_sysroot): | 143 | if not os.path.isdir(native_sysroot): |
| 144 | print "--native-sysroot (-n) not found, exiting\n" | 144 | print "--native-sysroot (-n) not found, exiting\n" |
| 145 | sys.exit(1) | 145 | sys.exit(1) |
| 146 | else: | ||
| 147 | not_found = not_found_dir = "" | ||
| 148 | if not os.path.isdir(rootfs_dir): | ||
| 149 | (not_found, not_found_dir) = ("rootfs-dir", rootfs_dir) | ||
| 150 | elif not os.path.isdir(hdddir) and not os.path.isdir(staging_data_dir): | ||
| 151 | (not_found, not_found_dir) = ("bootimg-dir", bootimg_dir) | ||
| 152 | elif not os.path.isdir(kernel_dir): | ||
| 153 | (not_found, not_found_dir) = ("kernel-dir", kernel_dir) | ||
| 154 | elif not os.path.isdir(native_sysroot): | ||
| 155 | (not_found, not_found_dir) = ("native-sysroot", native_sysroot) | ||
| 156 | if not_found: | ||
| 157 | if not not_found_dir: | ||
| 158 | not_found_dir = "Completely missing artifact - wrong image (.wks) used?" | ||
| 159 | print "Build artifacts not found, exiting." | ||
| 160 | print " (Please check that the build artifacts for the machine" | ||
| 161 | print " selected in local.conf actually exist and that they" | ||
| 162 | print " are the correct artifacts for the image (.wks file)).\n" | ||
| 163 | print "The artifact that couldn't be found was %s:\n %s" % \ | ||
| 164 | (not_found, not_found_dir) | ||
| 165 | sys.exit(1) | ||
| 146 | 166 | ||
| 147 | wic_create(args, wks_file, rootfs_dir, bootimg_dir, kernel_dir, | 167 | wic_create(args, wks_file, rootfs_dir, bootimg_dir, kernel_dir, |
| 148 | native_sysroot, hdddir, staging_data_dir, scripts_path, | 168 | native_sysroot, hdddir, staging_data_dir, scripts_path, |
