diff options
Diffstat (limited to 'scripts/lib/wic/partition.py')
-rw-r--r-- | scripts/lib/wic/partition.py | 20 |
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 |