From: Jon Mason Date: Wed, 13 Oct 2021 14:36:30 +0000 (-0400) Subject: runqemu: add DEPLOY_DIR_IMAGE replacement in QB_OPT_APPEND X-Git-Tag: uninative-3.5~1230 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=1f0bec0421617e8aa9645c385195a755f0d44e75;p=openembedded-core.git 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). Signed-off-by: Jon Mason Signed-off-by: Richard Purdie --- diff --git a/scripts/runqemu b/scripts/runqemu index 3268bb18ad..54f2336ba9 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -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]