summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/engine.py
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-02-08 20:51:33 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-02-15 20:06:44 -0800
commit7cb17e3e9ecd82764ed317f221bc60127dad197d (patch)
tree0b1c4c92ef8bc50a72933532d9f336f907f65f97 /scripts/lib/wic/engine.py
parent74aee7a1a7b584e062d7294c9a0263c5dbbe425d (diff)
downloadpoky-7cb17e3e9ecd82764ed317f221bc60127dad197d.tar.gz
wic: remove unused argument scripts_path
There is no need to pass scripts_path from main wic module down the stack as it's not used there. Removed scripts_path argument from DirectPlugin class and wic_create function. (From OE-Core rev: f9f72c506befdff13260f37ded0beaea3aa30fad) 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>
Diffstat (limited to 'scripts/lib/wic/engine.py')
-rw-r--r--scripts/lib/wic/engine.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py
index e27598d01a..1aa8f6534e 100644
--- a/scripts/lib/wic/engine.py
+++ b/scripts/lib/wic/engine.py
@@ -145,8 +145,8 @@ def list_source_plugins():
145 print(" %s" % plugin) 145 print(" %s" % plugin)
146 146
147 147
148def wic_create(wks_file, rootfs_dir, bootimg_dir, kernel_dir, native_sysroot, 148def wic_create(wks_file, rootfs_dir, bootimg_dir, kernel_dir,
149 scripts_path, options): 149 native_sysroot, options):
150 """ 150 """
151 Create image 151 Create image
152 152
@@ -155,7 +155,6 @@ def wic_create(wks_file, rootfs_dir, bootimg_dir, kernel_dir, native_sysroot,
155 bootimg_dir - absolute path to the build's boot artifacts directory 155 bootimg_dir - absolute path to the build's boot artifacts directory
156 kernel_dir - absolute path to the build's kernel directory 156 kernel_dir - absolute path to the build's kernel directory
157 native_sysroot - absolute path to the build's native sysroots dir 157 native_sysroot - absolute path to the build's native sysroots dir
158 scripts_path - absolute path to /scripts dir
159 image_output_dir - dirname to create for image 158 image_output_dir - dirname to create for image
160 options - wic command line options (debug, bmap, etc) 159 options - wic command line options (debug, bmap, etc)
161 160
@@ -195,7 +194,7 @@ def wic_create(wks_file, rootfs_dir, bootimg_dir, kernel_dir, native_sysroot,
195 msger.error('Unknown plugin: %s' % pname) 194 msger.error('Unknown plugin: %s' % pname)
196 195
197 plugin = plugin_class(wks_file, rootfs_dir, bootimg_dir, kernel_dir, 196 plugin = plugin_class(wks_file, rootfs_dir, bootimg_dir, kernel_dir,
198 native_sysroot, scripts_path, oe_builddir, options) 197 native_sysroot, oe_builddir, options)
199 198
200 plugin.do_create() 199 plugin.do_create()
201 200