diff options
author | Tom Zanussi <tom.zanussi@linux.intel.com> | 2014-08-11 20:35:37 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-15 18:21:52 +0100 |
commit | e00e902fc7f91be415682e084c839bce7bb64d3f (patch) | |
tree | 46f06f6eabf3d373a7218c5c1ddfcd7b2e839ada /scripts/lib/wic/plugins/source/bootimg-pcbios.py | |
parent | ef700ea11f51f239a886831ad26ff0d64b57c73d (diff) | |
download | poky-e00e902fc7f91be415682e084c839bce7bb64d3f.tar.gz |
wic: Add sourceparam param to partition plugin methods
The sourceparam param allows source plugins to be parameterized
generically (via --sourceparams="key=val[,key=val], implemented
previously).
(From OE-Core rev: 2abbcc843ba888782f6d68748d930c81e6ae7040)
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/plugins/source/bootimg-pcbios.py')
-rw-r--r-- | scripts/lib/wic/plugins/source/bootimg-pcbios.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/lib/wic/plugins/source/bootimg-pcbios.py b/scripts/lib/wic/plugins/source/bootimg-pcbios.py index bd2225eeaf..aceed20428 100644 --- a/scripts/lib/wic/plugins/source/bootimg-pcbios.py +++ b/scripts/lib/wic/plugins/source/bootimg-pcbios.py | |||
@@ -65,8 +65,9 @@ class BootimgPcbiosPlugin(SourcePlugin): | |||
65 | raise ImageError("Unable to set MBR to %s" % full_path) | 65 | raise ImageError("Unable to set MBR to %s" % full_path) |
66 | 66 | ||
67 | @classmethod | 67 | @classmethod |
68 | def do_configure_partition(self, part, cr, cr_workdir, oe_builddir, | 68 | def do_configure_partition(self, part, source_params, cr, cr_workdir, |
69 | bootimg_dir, kernel_dir, native_sysroot): | 69 | oe_builddir, bootimg_dir, kernel_dir, |
70 | native_sysroot): | ||
70 | """ | 71 | """ |
71 | Called before do_prepare_partition(), creates syslinux config | 72 | Called before do_prepare_partition(), creates syslinux config |
72 | """ | 73 | """ |
@@ -118,8 +119,9 @@ class BootimgPcbiosPlugin(SourcePlugin): | |||
118 | cfg.close() | 119 | cfg.close() |
119 | 120 | ||
120 | @classmethod | 121 | @classmethod |
121 | def do_prepare_partition(self, part, cr, cr_workdir, oe_builddir, bootimg_dir, | 122 | def do_prepare_partition(self, part, source_params, cr, cr_workdir, |
122 | kernel_dir, rootfs_dir, native_sysroot): | 123 | oe_builddir, bootimg_dir, kernel_dir, |
124 | rootfs_dir, native_sysroot): | ||
123 | """ | 125 | """ |
124 | Called to do the actual content population for a partition i.e. it | 126 | Called to do the actual content population for a partition i.e. it |
125 | 'prepares' the partition to be incorporated into the image. | 127 | 'prepares' the partition to be incorporated into the image. |