diff options
| author | Tom Zanussi <tom.zanussi@linux.intel.com> | 2013-10-16 00:14:29 -0500 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-10-16 13:31:37 +0100 |
| commit | 040bd3d6d33f84109ecf5998c02ae8ba3dbe76af (patch) | |
| tree | bd35a98359bf9bfb54403d74e78675cb918e5aea | |
| parent | 6a394411cc3316258786e74a6283b8121929e3db (diff) | |
| download | poky-040bd3d6d33f84109ecf5998c02ae8ba3dbe76af.tar.gz | |
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.
(From OE-Core rev: 9116a17efd42447f276000927d0c2ea63776865b)
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rwxr-xr-x | scripts/wic | 8 |
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): | |||
| 75 | parser.print_help() | 75 | parser.print_help() |
| 76 | sys.exit(1) | 76 | sys.exit(1) |
| 77 | 77 | ||
| 78 | if not options.image_name and not (options.rootfs_dir and | ||
| 79 | options.bootimg_dir and | ||
| 80 | options.kernel_dir and | ||
| 81 | options.native_sysroot): | ||
| 82 | print "Build artifacts not completely specified, exiting." | ||
| 83 | print " (Use 'wic -e' or 'wic -r -b -k -n' to specify artifacts)" | ||
| 84 | sys.exit(1) | ||
| 85 | |||
| 78 | if not options.image_name: | 86 | if not options.image_name: |
| 79 | options.build_check = False | 87 | options.build_check = False |
| 80 | 88 | ||
