diff options
author | Tom Zanussi <tom.zanussi@linux.intel.com> | 2014-08-11 20:35:38 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-15 18:19:54 +0100 |
commit | 769a6f920fb672c50d76bd4bdea4a65fdc18a7b3 (patch) | |
tree | b92c04849e577337b2548560fa0421805e3976b8 /scripts/lib/wic | |
parent | 2abbcc843ba888782f6d68748d930c81e6ae7040 (diff) | |
download | openembedded-core-769a6f920fb672c50d76bd4bdea4a65fdc18a7b3.tar.gz openembedded-core-769a6f920fb672c50d76bd4bdea4a65fdc18a7b3.tar.bz2 openembedded-core-769a6f920fb672c50d76bd4bdea4a65fdc18a7b3.zip |
wic: Parse and pass sourceparams to partition plugin methods
Add code to parse the sourceparams and pass them to the partition
plugin methods.
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic')
-rw-r--r-- | scripts/lib/wic/kickstart/custom_commands/partition.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/scripts/lib/wic/kickstart/custom_commands/partition.py b/scripts/lib/wic/kickstart/custom_commands/partition.py index 76cf7a994c..a3d5ef35c7 100644 --- a/scripts/lib/wic/kickstart/custom_commands/partition.py +++ b/scripts/lib/wic/kickstart/custom_commands/partition.py @@ -126,6 +126,11 @@ class Wic_PartData(Mic_PartData): Prepare content for individual partitions, depending on partition command parameters. """ + self.sourceparams_dict = {} + + if self.sourceparams: + self.sourceparams_dict = parse_sourceparams(self.sourceparams) + if not self.source: if not self.size: msger.error("The %s partition has a size of zero. Please specify a non-zero --size for that partition." % self.mountpoint) @@ -143,16 +148,19 @@ class Wic_PartData(Mic_PartData): msger.error("The '%s' --source specified for %s doesn't exist.\n\tSee 'wic list source-plugins' for a list of available --sources.\n\tSee 'wic help source-plugins' for details on adding a new source plugin." % (self.source, self.mountpoint)) self._source_methods = pluginmgr.get_source_plugin_methods(self.source, partition_methods) - self._source_methods["do_configure_partition"](self, None, cr, cr_workdir, + self._source_methods["do_configure_partition"](self, self.sourceparams_dict, + cr, cr_workdir, oe_builddir, bootimg_dir, kernel_dir, native_sysroot) - self._source_methods["do_stage_partition"](self, None, cr, cr_workdir, + self._source_methods["do_stage_partition"](self, self.sourceparams_dict, + cr, cr_workdir, oe_builddir, bootimg_dir, kernel_dir, native_sysroot) - self._source_methods["do_prepare_partition"](self, None, cr, cr_workdir, + self._source_methods["do_prepare_partition"](self, self.sourceparams_dict, + cr, cr_workdir, oe_builddir, bootimg_dir, kernel_dir, rootfs_dir, native_sysroot) |