summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/partition.py
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-02-15 20:13:41 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-04 23:18:17 +0000
commitb9839fd6648c05b9052ab922bf81eec2fffd47bb (patch)
treecbef8fbfb033a7994efe75c23aa38923f40cb6b8 /scripts/lib/wic/partition.py
parent59b72c0b260001b98eca87f3e6c0dfccef38182c (diff)
downloadpoky-b9839fd6648c05b9052ab922bf81eec2fffd47bb.tar.gz
wic: remove PluginMgr.get_plugin_methods
Call methods directly instead of getting them with get_plugin_methods and then calling. (From OE-Core rev: efcd07fe17bf55441059b00a5becc3952e0a4075) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/partition.py')
-rw-r--r--scripts/lib/wic/partition.py20
1 files changed, 8 insertions, 12 deletions
diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py
index 1f384be450..adf44b743c 100644
--- a/scripts/lib/wic/partition.py
+++ b/scripts/lib/wic/partition.py
@@ -170,20 +170,16 @@ class Partition():
170 splitted = self.sourceparams.split(',') 170 splitted = self.sourceparams.split(',')
171 srcparams_dict = dict(par.split('=') for par in splitted if par) 171 srcparams_dict = dict(par.split('=') for par in splitted if par)
172 172
173 partition_methods = ["do_configure_partition", "do_stage_partition", 173 plugin = PluginMgr.get_plugins('source')[self.source]
174 "do_prepare_partition"] 174 plugin.do_configure_partition(self, srcparams_dict, creator,
175
176 methods = PluginMgr.get_plugin_methods('source', self.source,
177 partition_methods)
178 methods["do_configure_partition"](self, srcparams_dict, creator,
179 cr_workdir, oe_builddir, bootimg_dir,
180 kernel_dir, native_sysroot)
181 methods["do_stage_partition"](self, srcparams_dict, creator,
182 cr_workdir, oe_builddir, bootimg_dir, 175 cr_workdir, oe_builddir, bootimg_dir,
183 kernel_dir, native_sysroot) 176 kernel_dir, native_sysroot)
184 methods["do_prepare_partition"](self, srcparams_dict, creator, 177 plugin.do_stage_partition(self, srcparams_dict, creator,
185 cr_workdir, oe_builddir, bootimg_dir, 178 cr_workdir, oe_builddir, bootimg_dir,
186 kernel_dir, rootfs_dir, native_sysroot) 179 kernel_dir, native_sysroot)
180 plugin.do_prepare_partition(self, srcparams_dict, creator,
181 cr_workdir, oe_builddir, bootimg_dir,
182 kernel_dir, rootfs_dir, native_sysroot)
187 183
188 # further processing required Partition.size to be an integer, make 184 # further processing required Partition.size to be an integer, make
189 # sure that it is one 185 # sure that it is one