From: Alistair Francis Date: Fri, 24 Mar 2017 20:38:57 +0000 (-0700) Subject: runqemu: Automatically add a TFTP directory for slirp boot X-Git-Tag: uninative-1.7~903 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=a6bef2fa065f8bb74d0084e44dd0ca47d7859113;p=openembedded-core.git runqemu: Automatically add a TFTP directory for slirp boot 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 Signed-off-by: Ross Burton --- diff --git a/scripts/runqemu b/scripts/runqemu index f0ddeea1bf..72c4176b72 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -844,7 +844,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)