diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-06-13 14:22:02 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-14 10:18:29 +0100 |
commit | 1344400f1a9ad24c7ec43e1b2f8190c48ba59ebb (patch) | |
tree | 3f5ff85303aa10283756238f48d93550969ce692 /scripts/lib/wic/engine.py | |
parent | 0165f40cbbed9ed1f941590b0aeef3f25fadb60c (diff) | |
download | poky-1344400f1a9ad24c7ec43e1b2f8190c48ba59ebb.tar.gz |
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>
Diffstat (limited to 'scripts/lib/wic/engine.py')
-rw-r--r-- | scripts/lib/wic/engine.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py index e3701c442e..f24fb9aa8a 100644 --- a/scripts/lib/wic/engine.py +++ b/scripts/lib/wic/engine.py | |||
@@ -237,6 +237,7 @@ class Disk: | |||
237 | self.native_sysroot = native_sysroot | 237 | self.native_sysroot = native_sysroot |
238 | self._partitions = None | 238 | self._partitions = None |
239 | self._mdir = None | 239 | self._mdir = None |
240 | self._mcopy = None | ||
240 | self._partimages = {} | 241 | self._partimages = {} |
241 | 242 | ||
242 | # find parted | 243 | # find parted |
@@ -280,6 +281,10 @@ class Disk: | |||
280 | def mdir(self): | 281 | def mdir(self): |
281 | return self._prop('mdir') | 282 | return self._prop('mdir') |
282 | 283 | ||
284 | @property | ||
285 | def mcopy(self): | ||
286 | return self._prop("mcopy") | ||
287 | |||
283 | def _get_part_image(self, pnum): | 288 | def _get_part_image(self, pnum): |
284 | if pnum not in self.partitions: | 289 | if pnum not in self.partitions: |
285 | raise WicError("Partition %s is not in the image") | 290 | raise WicError("Partition %s is not in the image") |