summaryrefslogtreecommitdiff
path: root/scripts/wic
diff options
context:
space:
mode:
authorTom Zanussi <tom.zanussi@linux.intel.com>2013-10-16 00:14:30 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-10-16 13:25:37 +0100
commit24a585e3fd0ea0166991a6aa834bba15bcd8295d (patch)
treeedf6e4d80efc60d1171455d12cfe79cd60cd98aa /scripts/wic
parent9116a17efd42447f276000927d0c2ea63776865b (diff)
downloadopenembedded-core-24a585e3fd0ea0166991a6aa834bba15bcd8295d.tar.gz
openembedded-core-24a585e3fd0ea0166991a6aa834bba15bcd8295d.tar.bz2
openembedded-core-24a585e3fd0ea0166991a6aa834bba15bcd8295d.zip
wic: check passed-in build artifact directories
Make sure they exist - complain if they don't. Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/wic')
-rwxr-xr-xscripts/wic12
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):
bootimg_dir = options.bootimg_dir
kernel_dir = options.kernel_dir
native_sysroot = options.native_sysroot
+ if not os.path.isdir(rootfs_dir):
+ print "--roofs-dir (-r) not found, exiting\n"
+ sys.exit(1)
+ if not os.path.isdir(bootimg_dir):
+ print "--bootimg-dir (-b) not found, exiting\n"
+ sys.exit(1)
+ if not os.path.isdir(kernel_dir):
+ print "--kernel-dir (-k) not found, exiting\n"
+ sys.exit(1)
+ if not os.path.isdir(native_sysroot):
+ print "--native-sysroot (-n) not found, exiting\n"
+ sys.exit(1)
wic_create(args, wks_file, rootfs_dir, bootimg_dir, kernel_dir,
native_sysroot, hdddir, staging_data_dir, scripts_path,