mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
runqemu: add DEPLOY_DIR_IMAGE replacement in QB_OPT_APPEND
Add the ability to replace DEPLOY_DIR_IMAGE with that path in QB_OPT_APPEND. This allows for anything present in DEPLOY_DIR_IMAGE to be passed into the qemu parameters. This is especially useful if you want to run multiple flash images (as -bios only allows for one). (From OE-Core rev: 1f0bec0421617e8aa9645c385195a755f0d44e75) Signed-off-by: Jon Mason <jdmason@kudzu.us> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
f7bc56fbd8
commit
47d033595a
@@ -1412,7 +1412,7 @@ class BaseConfig(object):
|
||||
if not os.access(qemu_bin, os.X_OK):
|
||||
raise OEPathError("No QEMU binary '%s' could be found" % qemu_bin)
|
||||
|
||||
self.qemu_opt = "%s %s %s %s %s" % (qemu_bin, self.get('NETWORK_CMD'), self.get('QB_RNG'), self.get('ROOTFS_OPTIONS'), self.get('QB_OPT_APPEND'))
|
||||
self.qemu_opt = "%s %s %s %s %s" % (qemu_bin, self.get('NETWORK_CMD'), self.get('QB_RNG'), self.get('ROOTFS_OPTIONS'), self.get('QB_OPT_APPEND').replace('@DEPLOY_DIR_IMAGE@', self.get('DEPLOY_DIR_IMAGE')))
|
||||
|
||||
for ovmf in self.ovmf_bios:
|
||||
format = ovmf.rsplit('.', 1)[-1]
|
||||
|
||||
Reference in New Issue
Block a user