mirror of
https://git.yoctoproject.org/poky
synced 2026-07-17 04:07:06 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
59b72c0b26
commit
b9839fd664
@@ -170,20 +170,16 @@ class Partition():
|
||||
splitted = self.sourceparams.split(',')
|
||||
srcparams_dict = dict(par.split('=') for par in splitted if par)
|
||||
|
||||
partition_methods = ["do_configure_partition", "do_stage_partition",
|
||||
"do_prepare_partition"]
|
||||
|
||||
methods = PluginMgr.get_plugin_methods('source', self.source,
|
||||
partition_methods)
|
||||
methods["do_configure_partition"](self, srcparams_dict, creator,
|
||||
cr_workdir, oe_builddir, bootimg_dir,
|
||||
kernel_dir, native_sysroot)
|
||||
methods["do_stage_partition"](self, srcparams_dict, creator,
|
||||
plugin = PluginMgr.get_plugins('source')[self.source]
|
||||
plugin.do_configure_partition(self, srcparams_dict, creator,
|
||||
cr_workdir, oe_builddir, bootimg_dir,
|
||||
kernel_dir, native_sysroot)
|
||||
methods["do_prepare_partition"](self, srcparams_dict, creator,
|
||||
cr_workdir, oe_builddir, bootimg_dir,
|
||||
kernel_dir, rootfs_dir, native_sysroot)
|
||||
plugin.do_stage_partition(self, srcparams_dict, creator,
|
||||
cr_workdir, oe_builddir, bootimg_dir,
|
||||
kernel_dir, native_sysroot)
|
||||
plugin.do_prepare_partition(self, srcparams_dict, creator,
|
||||
cr_workdir, oe_builddir, bootimg_dir,
|
||||
kernel_dir, rootfs_dir, native_sysroot)
|
||||
|
||||
# further processing required Partition.size to be an integer, make
|
||||
# sure that it is one
|
||||
|
||||
Reference in New Issue
Block a user