diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/wic | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/wic b/scripts/wic index aa2791ac6e..425b665861 100755 --- a/scripts/wic +++ b/scripts/wic | |||
@@ -119,6 +119,18 @@ def wic_create_subcommand(args, usage_str): | |||
119 | bootimg_dir = options.bootimg_dir | 119 | bootimg_dir = options.bootimg_dir |
120 | kernel_dir = options.kernel_dir | 120 | kernel_dir = options.kernel_dir |
121 | native_sysroot = options.native_sysroot | 121 | native_sysroot = options.native_sysroot |
122 | if not os.path.isdir(rootfs_dir): | ||
123 | print "--roofs-dir (-r) not found, exiting\n" | ||
124 | sys.exit(1) | ||
125 | if not os.path.isdir(bootimg_dir): | ||
126 | print "--bootimg-dir (-b) not found, exiting\n" | ||
127 | sys.exit(1) | ||
128 | if not os.path.isdir(kernel_dir): | ||
129 | print "--kernel-dir (-k) not found, exiting\n" | ||
130 | sys.exit(1) | ||
131 | if not os.path.isdir(native_sysroot): | ||
132 | print "--native-sysroot (-n) not found, exiting\n" | ||
133 | sys.exit(1) | ||
122 | 134 | ||
123 | wic_create(args, wks_file, rootfs_dir, bootimg_dir, kernel_dir, | 135 | wic_create(args, wks_file, rootfs_dir, bootimg_dir, kernel_dir, |
124 | native_sysroot, hdddir, staging_data_dir, scripts_path, | 136 | native_sysroot, hdddir, staging_data_dir, scripts_path, |