summaryrefslogtreecommitdiff
path: root/scripts/wic
diff options
context:
space:
mode:
authorTom Zanussi <tom.zanussi@linux.intel.com>2013-10-16 00:14:29 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-10-16 13:25:25 +0100
commit9116a17efd42447f276000927d0c2ea63776865b (patch)
tree94a01a352624f4e51f13c3cd88227ec20a55abc3 /scripts/wic
parent96204ae6e1b19783d6a3f8c590890714eaa9e2d9 (diff)
downloadopenembedded-core-9116a17efd42447f276000927d0c2ea63776865b.tar.gz
openembedded-core-9116a17efd42447f276000927d0c2ea63776865b.tar.bz2
openembedded-core-9116a17efd42447f276000927d0c2ea63776865b.zip
wic: check for build artifacts
wic needs to be given one form of build artifacts or another - complain if the user doesn't do that. 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/wic8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/wic b/scripts/wic
index 06e72bbfda..aa2791ac6e 100755
--- a/scripts/wic
+++ b/scripts/wic
@@ -75,6 +75,14 @@ def wic_create_subcommand(args, usage_str):
parser.print_help()
sys.exit(1)
+ if not options.image_name and not (options.rootfs_dir and
+ options.bootimg_dir and
+ options.kernel_dir and
+ options.native_sysroot):
+ print "Build artifacts not completely specified, exiting."
+ print " (Use 'wic -e' or 'wic -r -b -k -n' to specify artifacts)"
+ sys.exit(1)
+
if not options.image_name:
options.build_check = False