diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-06-22 16:07:13 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-27 22:42:49 +0100 |
commit | a04ebe7246554c58914d8b7ca9c4b5672b2e2f76 (patch) | |
tree | d945fdefe35be1944c43742e5a6243e026edd6bf /scripts/lib/image/engine.py | |
parent | 34766858cd900501af5b43d6fc626439f8708720 (diff) | |
download | poky-a04ebe7246554c58914d8b7ca9c4b5672b2e2f76.tar.gz |
wic: Make code more pythonic
Used more pythonic way to make a list.
(From OE-Core rev: 42b86a1654452348036c5d348d2fa5fe27e98245)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/image/engine.py')
-rw-r--r-- | scripts/lib/image/engine.py | 14 |
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, | |||
216 | print "BUILDDIR not found, exiting. (Did you forget to source oe-init-build-env?)" | 216 | print "BUILDDIR not found, exiting. (Did you forget to source oe-init-build-env?)" |
217 | sys.exit(1) | 217 | sys.exit(1) |
218 | 218 | ||
219 | direct_args = list() | ||
220 | direct_args.insert(0, compressor or "") | ||
221 | direct_args.insert(0, oe_builddir) | ||
222 | direct_args.insert(0, image_output_dir) | ||
223 | direct_args.insert(0, wks_file) | ||
224 | direct_args.insert(0, rootfs_dir) | ||
225 | direct_args.insert(0, bootimg_dir) | ||
226 | direct_args.insert(0, kernel_dir) | ||
227 | direct_args.insert(0, native_sysroot) | ||
228 | direct_args.insert(0, "direct") | ||
229 | |||
230 | if debug: | 219 | if debug: |
231 | msger.set_loglevel('debug') | 220 | msger.set_loglevel('debug') |
232 | 221 | ||
233 | cr = creator.Creator() | 222 | cr = creator.Creator() |
234 | 223 | ||
235 | cr.main(direct_args) | 224 | cr.main(["direct", native_sysroot, kernel_dir, bootimg_dir, rootfs_dir, |
225 | wks_file, image_output_dir, oe_builddir, compressor or ""]) | ||
236 | 226 | ||
237 | print "\nThe image(s) were created using OE kickstart file:\n %s" % wks_file | 227 | print "\nThe image(s) were created using OE kickstart file:\n %s" % wks_file |
238 | 228 | ||