mirror of
https://git.yoctoproject.org/poky
synced 2026-04-03 20:02:24 +02:00
wic: run bmaptool with native Python3
Modified wic code to run bmaptool using native Python3 from wic-tools native sysroot. [YOCTO #11891] (From OE-Core rev: 7fca44e03130c0860cc5df2093902773f426c774) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
04ef46e2b2
commit
cef80d0dfe
@@ -213,8 +213,10 @@ class DirectPlugin(ImagerPlugin):
|
||||
# Generate .bmap
|
||||
if self.bmap:
|
||||
logger.debug("Generating bmap file for %s", disk_name)
|
||||
exec_native_cmd("bmaptool create %s -o %s.bmap" % (full_path, full_path),
|
||||
self.native_sysroot)
|
||||
python = os.path.join(self.native_sysroot, 'usr/bin/python3-native/python3')
|
||||
bmaptool = os.path.join(self.native_sysroot, 'usr/bin/bmaptool')
|
||||
exec_native_cmd("%s %s create %s -o %s.bmap" % \
|
||||
(python, bmaptool, full_path, full_path), self.native_sysroot)
|
||||
# Compress the image
|
||||
if self.compressor:
|
||||
logger.debug("Compressing disk %s with %s", disk_name, self.compressor)
|
||||
|
||||
Reference in New Issue
Block a user