[oe-commits] Tom Zanussi : wic: check for build artifacts

git at git.openembedded.org git at git.openembedded.org
Wed Oct 16 12:18:42 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: 9116a17efd42447f276000927d0c2ea63776865b
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=9116a17efd42447f276000927d0c2ea63776865b

Author: Tom Zanussi <tom.zanussi at linux.intel.com>
Date:   Wed Oct 16 00:14:29 2013 -0500

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 at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 scripts/wic |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/scripts/wic b/scripts/wic
index 06e72bb..aa2791a 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
 



More information about the Openembedded-commits mailing list