wic: get rid of image_output_dir variable
Used options.outdir instead of image_output_dir. There is no sense to use extra variable for this. (From OE-Core rev: c6013dcb158a84d48cc2677f1509681cf9e0a3cb) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
14652a42d8
commit
3571e3e77f
|
@ -203,10 +203,6 @@ def wic_create_subcommand(args, usage_str):
|
||||||
"kickstart (.wks) filename)\n" % args[0])
|
"kickstart (.wks) filename)\n" % args[0])
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
image_output_dir = ""
|
|
||||||
if options.outdir:
|
|
||||||
image_output_dir = options.outdir
|
|
||||||
|
|
||||||
if not options.image_name:
|
if not options.image_name:
|
||||||
rootfs_dir = ''
|
rootfs_dir = ''
|
||||||
if 'ROOTFS_DIR' in options.rootfs_dir:
|
if 'ROOTFS_DIR' in options.rootfs_dir:
|
||||||
|
@ -254,7 +250,7 @@ def wic_create_subcommand(args, usage_str):
|
||||||
|
|
||||||
print("Creating image(s)...\n")
|
print("Creating image(s)...\n")
|
||||||
engine.wic_create(wks_file, rootfs_dir, bootimg_dir, kernel_dir,
|
engine.wic_create(wks_file, rootfs_dir, bootimg_dir, kernel_dir,
|
||||||
native_sysroot, scripts_path, image_output_dir,
|
native_sysroot, scripts_path, options.outdir,
|
||||||
options.compressor, options.bmap, options.debug)
|
options.compressor, options.bmap, options.debug)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue