summaryrefslogtreecommitdiff
path: root/scripts/lib/wic/plugins
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-06-22 15:15:22 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-26 14:08:01 +0100
commit34c583274c2908351e3a84dd629302f1975f2f0d (patch)
treeecad790d22619b0b15dba00a72b091e7df2f89e3 /scripts/lib/wic/plugins
parent33d38aefb06f8849b46c5f9f6c1db73b4dccd985 (diff)
downloadopenembedded-core-34c583274c2908351e3a84dd629302f1975f2f0d.tar.gz
openembedded-core-34c583274c2908351e3a84dd629302f1975f2f0d.tar.bz2
openembedded-core-34c583274c2908351e3a84dd629302f1975f2f0d.zip
wic: Add new argument to direct plugin
Added 'compressor' argument to Direct plugin API to pass a name of compressor utility. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Diffstat (limited to 'scripts/lib/wic/plugins')
-rw-r--r--scripts/lib/wic/plugins/imager/direct_plugin.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/lib/wic/plugins/imager/direct_plugin.py b/scripts/lib/wic/plugins/imager/direct_plugin.py
index 07811bd26d..db01c411ba 100644
--- a/scripts/lib/wic/plugins/imager/direct_plugin.py
+++ b/scripts/lib/wic/plugins/imager/direct_plugin.py
@@ -62,7 +62,7 @@ class DirectPlugin(ImagerPlugin):
"""
Create direct image, called from creator as 'direct' cmd
"""
- if len(args) != 7:
+ if len(args) != 8:
raise errors.Usage("Extra arguments given")
native_sysroot = args[0]
@@ -75,6 +75,7 @@ class DirectPlugin(ImagerPlugin):
image_output_dir = args[5]
oe_builddir = args[6]
+ compressor = args[7]
krootfs_dir = cls.__rootfs_dir_to_dict(rootfs_dir)
@@ -86,6 +87,7 @@ class DirectPlugin(ImagerPlugin):
bootimg_dir,
kernel_dir,
native_sysroot,
+ compressor,
creatoropts)
try: