* [PATCH] runqemu: add DEPLOY_DIR_IMAGE replacement in QB_OPT_APPEND
@ 2021-10-13 14:36 Jon Mason
2021-10-13 14:56 ` Jon Mason
0 siblings, 1 reply; 2+ messages in thread
From: Jon Mason @ 2021-10-13 14:36 UTC (permalink / raw)
To: openembedded-core, docs, bitbake-devel
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 <jdmason@kudzu.us>
---
scripts/runqemu | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/runqemu b/scripts/runqemu
index 3268bb18ada6..54f2336ba977 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]
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] runqemu: add DEPLOY_DIR_IMAGE replacement in QB_OPT_APPEND
2021-10-13 14:36 [PATCH] runqemu: add DEPLOY_DIR_IMAGE replacement in QB_OPT_APPEND Jon Mason
@ 2021-10-13 14:56 ` Jon Mason
0 siblings, 0 replies; 2+ messages in thread
From: Jon Mason @ 2021-10-13 14:56 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer, docs, bitbake-devel
Apologies to docs and bitbake mailing list for the unnecessary noise
On Wed, Oct 13, 2021 at 10:36 AM Jon Mason <jdmason@kudzu.us> wrote:
>
> 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 <jdmason@kudzu.us>
> ---
> scripts/runqemu | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/runqemu b/scripts/runqemu
> index 3268bb18ada6..54f2336ba977 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]
> --
> 2.20.1
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-13 14:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-13 14:36 [PATCH] runqemu: add DEPLOY_DIR_IMAGE replacement in QB_OPT_APPEND Jon Mason
2021-10-13 14:56 ` Jon Mason
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.