diff options
author | Jon Mason <jdmason@kudzu.us> | 2021-10-13 10:36:30 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-14 22:32:50 +0100 |
commit | 47d033595a2120749424494781a66a70311732dc (patch) | |
tree | 507b9d29686fac1373d96f2be3e2c460ab308deb | |
parent | f7bc56fbd8eb58f11076b7e6b47bd85de97d6822 (diff) | |
download | poky-47d033595a2120749424494781a66a70311732dc.tar.gz |
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>
-rwxr-xr-x | scripts/runqemu | 2 |
1 files changed, 1 insertions, 1 deletions
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): | |||
1412 | if not os.access(qemu_bin, os.X_OK): | 1412 | if not os.access(qemu_bin, os.X_OK): |
1413 | raise OEPathError("No QEMU binary '%s' could be found" % qemu_bin) | 1413 | raise OEPathError("No QEMU binary '%s' could be found" % qemu_bin) |
1414 | 1414 | ||
1415 | 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')) | 1415 | 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'))) |
1416 | 1416 | ||
1417 | for ovmf in self.ovmf_bios: | 1417 | for ovmf in self.ovmf_bios: |
1418 | format = ovmf.rsplit('.', 1)[-1] | 1418 | format = ovmf.rsplit('.', 1)[-1] |