mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 12:32:12 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
ef700ea11f
commit
e00e902fc7
@@ -42,8 +42,9 @@ class BootimgEFIPlugin(SourcePlugin):
|
||||
name = 'bootimg-efi'
|
||||
|
||||
@classmethod
|
||||
def do_configure_partition(self, part, cr, cr_workdir, oe_builddir,
|
||||
bootimg_dir, kernel_dir, native_sysroot):
|
||||
def do_configure_partition(self, source_params, part, cr, cr_workdir,
|
||||
oe_builddir, bootimg_dir, kernel_dir,
|
||||
native_sysroot):
|
||||
"""
|
||||
Called before do_prepare_partition(), creates grubefi config
|
||||
"""
|
||||
@@ -92,8 +93,9 @@ class BootimgEFIPlugin(SourcePlugin):
|
||||
cfg.close()
|
||||
|
||||
@classmethod
|
||||
def do_prepare_partition(self, part, cr, cr_workdir, oe_builddir, bootimg_dir,
|
||||
kernel_dir, rootfs_dir, native_sysroot):
|
||||
def do_prepare_partition(self, part, source_params, cr, cr_workdir,
|
||||
oe_builddir, bootimg_dir, kernel_dir,
|
||||
rootfs_dir, native_sysroot):
|
||||
"""
|
||||
Called to do the actual content population for a partition i.e. it
|
||||
'prepares' the partition to be incorporated into the image.
|
||||
|
||||
@@ -65,8 +65,9 @@ class BootimgPcbiosPlugin(SourcePlugin):
|
||||
raise ImageError("Unable to set MBR to %s" % full_path)
|
||||
|
||||
@classmethod
|
||||
def do_configure_partition(self, part, cr, cr_workdir, oe_builddir,
|
||||
bootimg_dir, kernel_dir, native_sysroot):
|
||||
def do_configure_partition(self, part, source_params, cr, cr_workdir,
|
||||
oe_builddir, bootimg_dir, kernel_dir,
|
||||
native_sysroot):
|
||||
"""
|
||||
Called before do_prepare_partition(), creates syslinux config
|
||||
"""
|
||||
@@ -118,8 +119,9 @@ class BootimgPcbiosPlugin(SourcePlugin):
|
||||
cfg.close()
|
||||
|
||||
@classmethod
|
||||
def do_prepare_partition(self, part, cr, cr_workdir, oe_builddir, bootimg_dir,
|
||||
kernel_dir, rootfs_dir, native_sysroot):
|
||||
def do_prepare_partition(self, part, source_params, cr, cr_workdir,
|
||||
oe_builddir, bootimg_dir, kernel_dir,
|
||||
rootfs_dir, native_sysroot):
|
||||
"""
|
||||
Called to do the actual content population for a partition i.e. it
|
||||
'prepares' the partition to be incorporated into the image.
|
||||
|
||||
@@ -62,8 +62,9 @@ class RootfsPlugin(SourcePlugin):
|
||||
return image_rootfs_dir
|
||||
|
||||
@classmethod
|
||||
def do_prepare_partition(self, part, cr, cr_workdir, oe_builddir, bootimg_dir,
|
||||
kernel_dir, krootfs_dir, native_sysroot):
|
||||
def do_prepare_partition(self, part, source_params, cr, cr_workdir,
|
||||
oe_builddir, bootimg_dir, kernel_dir,
|
||||
krootfs_dir, native_sysroot):
|
||||
"""
|
||||
Called to do the actual content population for a partition i.e. it
|
||||
'prepares' the partition to be incorporated into the image.
|
||||
|
||||
Reference in New Issue
Block a user