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 master rev: 9116a17efd42447f276000927d0c2ea63776865b) (From OE-Core rev: f9b9b920dc071b0798cbdaa150314a0126d2afad) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
042fec8fc3
commit
aeae568600
|
@ -75,6 +75,14 @@ def wic_create_subcommand(args, usage_str):
|
||||||
parser.print_help()
|
parser.print_help()
|
||||||
sys.exit(1)
|
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:
|
if not options.image_name:
|
||||||
options.build_check = False
|
options.build_check = False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue