diff options
author | Tom Zanussi <tom.zanussi@linux.intel.com> | 2013-10-16 00:14:30 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-10-16 13:31:37 +0100 |
commit | 71454f961e8c21da24147132ba0143f8c88c7fbf (patch) | |
tree | aee21323d546fd2246cd17cb9b93c465111efe5b /scripts | |
parent | 040bd3d6d33f84109ecf5998c02ae8ba3dbe76af (diff) | |
download | poky-71454f961e8c21da24147132ba0143f8c88c7fbf.tar.gz |
wic: check passed-in build artifact directories
Make sure they exist - complain if they don't.
(From OE-Core rev: 24a585e3fd0ea0166991a6aa834bba15bcd8295d)
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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, |