[oe-commits] [openembedded-core] 02/65: runqemu: output network configuration

git at git.openembedded.org git at git.openembedded.org
Wed Mar 22 10:13:36 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit cf66a1850677548aa63a54276fa4917f40259daf
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
AuthorDate: Fri Mar 17 15:18:32 2017 +0200

    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]
    
    Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/runqemu | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scripts/runqemu b/scripts/runqemu
index 4fa2867..23c9efb 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -925,7 +925,9 @@ class BaseConfig(object):
         client = gateway + 1
         if self.fstype == 'nfs':
             self.setup_nfs()
-        self.kernel_cmdline_script += " ip=192.168.7.%s::192.168.7.%s:255.255.255.0" % (client, gateway)
+        netconf = "192.168.7.%s::192.168.7.%s:255.255.255.0" % (client, gateway)
+        logger.info("Network configuration: %s", netconf)
+        self.kernel_cmdline_script += " ip=%s" % netconf
         mac = "%s%02x" % (self.mac_tap, client)
         qb_tap_opt = self.get('QB_TAP_OPT')
         if qb_tap_opt:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list