summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-03-17 15:18:32 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-22 11:35:19 +0000
commit4a57a7bc8d168677e8748892b546e0e8b53679ee (patch)
treee1e777996c85259ef82788ec6c81dcc77f989b23 /scripts/runqemu
parente7ce3c7f62bf4c043e48118eea10b42fe52f7a85 (diff)
downloadpoky-4a57a7bc8d168677e8748892b546e0e8b53679ee.tar.gz
runqemu: output network configuration
runqemu adds network configuration parameters to the kernel command line to configure guest networking. This works only for the images that run with external kernel using qemu -kernel parameter. It doesn't work for the images that use bootloader to boot kernel as -kernel parameter is not used and network configuration is not possible to get. Added host and guest ip addresses and netmask of tap link to the runqemu output. This should allow external programs that execute runqemu to get network configuration. [YOCTO #10833] (From OE-Core rev: cf66a1850677548aa63a54276fa4917f40259daf) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-xscripts/runqemu4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 4fa2867e73..23c9efbae2 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -925,7 +925,9 @@ class BaseConfig(object):
925 client = gateway + 1 925 client = gateway + 1
926 if self.fstype == 'nfs': 926 if self.fstype == 'nfs':
927 self.setup_nfs() 927 self.setup_nfs()
928 self.kernel_cmdline_script += " ip=192.168.7.%s::192.168.7.%s:255.255.255.0" % (client, gateway) 928 netconf = "192.168.7.%s::192.168.7.%s:255.255.255.0" % (client, gateway)
929 logger.info("Network configuration: %s", netconf)
930 self.kernel_cmdline_script += " ip=%s" % netconf
929 mac = "%s%02x" % (self.mac_tap, client) 931 mac = "%s%02x" % (self.mac_tap, client)
930 qb_tap_opt = self.get('QB_TAP_OPT') 932 qb_tap_opt = self.get('QB_TAP_OPT')
931 if qb_tap_opt: 933 if qb_tap_opt: