1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 00:20:08 +00:00

wic: add mcopy property

Added property that points to the mcopy executable.

(From OE-Core rev: 05badb6427442388b9bea04c8b184a2ce92362ec)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ed Bartosh
2017-06-13 14:22:02 +03:00
committed by Richard Purdie
parent 0165f40cbb
commit 1344400f1a
+5
View File
@@ -237,6 +237,7 @@ class Disk:
self.native_sysroot = native_sysroot
self._partitions = None
self._mdir = None
self._mcopy = None
self._partimages = {}
# find parted
@@ -280,6 +281,10 @@ class Disk:
def mdir(self):
return self._prop('mdir')
@property
def mcopy(self):
return self._prop("mcopy")
def _get_part_image(self, pnum):
if pnum not in self.partitions:
raise WicError("Partition %s is not in the image")