summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-06-22 16:07:13 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-26 14:08:02 +0100
commit42b86a1654452348036c5d348d2fa5fe27e98245 (patch)
treec774c4b38af790eec4a67e64dd2b0601d5e95ade
parent31791fa7a168e6b6fb030aeb338c8233b4735af1 (diff)
downloadopenembedded-core-42b86a1654452348036c5d348d2fa5fe27e98245.tar.gz
openembedded-core-42b86a1654452348036c5d348d2fa5fe27e98245.tar.bz2
openembedded-core-42b86a1654452348036c5d348d2fa5fe27e98245.zip
wic: Make code more pythonic
Used more pythonic way to make a list. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
-rw-r--r--scripts/lib/image/engine.py14
1 files changed, 2 insertions, 12 deletions
diff --git a/scripts/lib/image/engine.py b/scripts/lib/image/engine.py
index d5c34b4611..47950f8d15 100644
--- a/scripts/lib/image/engine.py
+++ b/scripts/lib/image/engine.py
@@ -216,23 +216,13 @@ def wic_create(wks_file, rootfs_dir, bootimg_dir, kernel_dir,
print "BUILDDIR not found, exiting. (Did you forget to source oe-init-build-env?)"
sys.exit(1)
- direct_args = list()
- direct_args.insert(0, compressor or "")
- direct_args.insert(0, oe_builddir)
- direct_args.insert(0, image_output_dir)
- direct_args.insert(0, wks_file)
- direct_args.insert(0, rootfs_dir)
- direct_args.insert(0, bootimg_dir)
- direct_args.insert(0, kernel_dir)
- direct_args.insert(0, native_sysroot)
- direct_args.insert(0, "direct")
-
if debug:
msger.set_loglevel('debug')
cr = creator.Creator()
- cr.main(direct_args)
+ cr.main(["direct", native_sysroot, kernel_dir, bootimg_dir, rootfs_dir,
+ wks_file, image_output_dir, oe_builddir, compressor or ""])
print "\nThe image(s) were created using OE kickstart file:\n %s" % wks_file