Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/2] runqemu: Automatically add a TFTP directory for slirp boot
@ 2017-03-24 16:12 Alistair Francis
  2017-03-24 16:12 ` [PATCH 2/2] runqemu: Add a background command option Alistair Francis
  2017-03-24 19:02 ` ✗ patchtest: failure for "runqemu: Automatically add a T..." and 1 more Patchwork
  0 siblings, 2 replies; 3+ messages in thread
From: Alistair Francis @ 2017-03-24 16:12 UTC (permalink / raw)
  To: openembedded-core, liezhi.yang, ross.burton

When booting QEMU with slirp networking we want to use QEMUs TFTP server
to make the images in deploy accessible to the guest.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
---
 scripts/runqemu | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/runqemu b/scripts/runqemu
index 23c9efb..f76d976 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -832,7 +832,7 @@ class BaseConfig(object):
         self.kernel_cmdline_script += ' ip=dhcp'
         # Port mapping
         hostfwd = ",hostfwd=tcp::2222-:22,hostfwd=tcp::2323-:23"
-        qb_slirp_opt_default = "-netdev user,id=net0%s" % hostfwd
+        qb_slirp_opt_default = "-netdev user,id=net0%s,tftp=%s" % (hostfwd, self.get('DEPLOY_DIR_IMAGE'))
         qb_slirp_opt = self.get('QB_SLIRP_OPT') or qb_slirp_opt_default
         # Figure out the port
         ports = re.findall('hostfwd=[^-]*:([0-9]+)-[^,-]*', qb_slirp_opt)
-- 
2.9.3



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-03-24 19:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-24 16:12 [PATCH 1/2] runqemu: Automatically add a TFTP directory for slirp boot Alistair Francis
2017-03-24 16:12 ` [PATCH 2/2] runqemu: Add a background command option Alistair Francis
2017-03-24 19:02 ` ✗ patchtest: failure for "runqemu: Automatically add a T..." and 1 more Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox