wic: Add '--sourceparams' partition option
To go along with '--source' as a way to parameterize source plugins. (From OE-Core rev: f5b9ef65453b3f66282c49f5e2584ad33ac6d2d7) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
c4f51a048f
commit
3c90ee9bc2
|
@ -47,6 +47,7 @@ class Wic_PartData(Mic_PartData):
|
||||||
Mic_PartData.__init__(self, *args, **kwargs)
|
Mic_PartData.__init__(self, *args, **kwargs)
|
||||||
self.deleteRemovedAttrs()
|
self.deleteRemovedAttrs()
|
||||||
self.source = kwargs.get("source", None)
|
self.source = kwargs.get("source", None)
|
||||||
|
self.sourceparams = kwargs.get("sourceparams", None)
|
||||||
self.rootfs = kwargs.get("rootfs-dir", None)
|
self.rootfs = kwargs.get("rootfs-dir", None)
|
||||||
self.source_file = ""
|
self.source_file = ""
|
||||||
self.size = 0
|
self.size = 0
|
||||||
|
@ -56,6 +57,8 @@ class Wic_PartData(Mic_PartData):
|
||||||
|
|
||||||
if self.source:
|
if self.source:
|
||||||
retval += " --source=%s" % self.source
|
retval += " --source=%s" % self.source
|
||||||
|
if self.sourceparams:
|
||||||
|
retval += " --sourceparams=%s" % self.sourceparams
|
||||||
if self.rootfs:
|
if self.rootfs:
|
||||||
retval += " --rootfs-dir=%s" % self.rootfs
|
retval += " --rootfs-dir=%s" % self.rootfs
|
||||||
|
|
||||||
|
@ -490,6 +493,9 @@ class Wic_Partition(Mic_Partition):
|
||||||
# and calculate partition size
|
# and calculate partition size
|
||||||
op.add_option("--source", type="string", action="store",
|
op.add_option("--source", type="string", action="store",
|
||||||
dest="source", default=None)
|
dest="source", default=None)
|
||||||
|
# comma-separated list of param=value pairs
|
||||||
|
op.add_option("--sourceparams", type="string", action="store",
|
||||||
|
dest="sourceparams", default=None)
|
||||||
# use specified rootfs path to fill the partition
|
# use specified rootfs path to fill the partition
|
||||||
op.add_option("--rootfs-dir", type="string", action="store",
|
op.add_option("--rootfs-dir", type="string", action="store",
|
||||||
dest="rootfs", default=None)
|
dest="rootfs", default=None)
|
||||||
|
|
Loading…
Reference in New Issue