mirror of
https://git.yoctoproject.org/poky
synced 2026-05-05 07:39:49 +02:00
qemurunner.py: use IP address from command line
(From OE-Core rev: 44ab760c8ad7889b92019ec9341dfbec425ea4c0) Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
44b0aa3426
commit
8c5b112255
@@ -406,9 +406,9 @@ class QemuRunner:
|
||||
try:
|
||||
if self.use_slirp:
|
||||
tcp_ports = cmdline.split("hostfwd=tcp:")[1]
|
||||
tcp_ports = tcp_ports.split(":")[1]
|
||||
ip, tcp_ports = tcp_ports.split(":")[:2]
|
||||
host_port = tcp_ports[:tcp_ports.find('-')]
|
||||
self.ip = "localhost:%s" % host_port
|
||||
self.ip = "%s:%s" % (ip, host_port)
|
||||
else:
|
||||
ips = re.findall(r"((?:[0-9]{1,3}\.){3}[0-9]{1,3})", cmdline.split("ip=")[1])
|
||||
self.ip = ips[0]
|
||||
|
||||
Reference in New Issue
Block a user