summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-xscripts/runqemu12
1 files changed, 9 insertions, 3 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 39bed038d5..19fd521cd9 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -438,7 +438,7 @@ class BaseConfig(object):
438 elif arg == 'publicvnc': 438 elif arg == 'publicvnc':
439 self.qemu_opt_script += ' -vnc :0' 439 self.qemu_opt_script += ' -vnc :0'
440 elif arg.startswith('tcpserial='): 440 elif arg.startswith('tcpserial='):
441 self.tcpserial_portnum = arg[len('tcpserial='):] 441 self.tcpserial_portnum = '%s' % arg[len('tcpserial='):]
442 elif arg.startswith('biosdir='): 442 elif arg.startswith('biosdir='):
443 self.custombiosdir = arg[len('biosdir='):] 443 self.custombiosdir = arg[len('biosdir='):]
444 elif arg.startswith('biosfilename='): 444 elif arg.startswith('biosfilename='):
@@ -681,10 +681,16 @@ class BaseConfig(object):
681 681
682 def check_tcpserial(self): 682 def check_tcpserial(self):
683 if self.tcpserial_portnum: 683 if self.tcpserial_portnum:
684 ports = self.tcpserial_portnum.split(':')
685 port = ports[0]
684 if self.get('QB_TCPSERIAL_OPT'): 686 if self.get('QB_TCPSERIAL_OPT'):
685 self.qemu_opt_script += ' ' + self.get('QB_TCPSERIAL_OPT').replace('@PORT@', self.tcpserial_portnum) 687 self.qemu_opt_script += ' ' + self.get('QB_TCPSERIAL_OPT').replace('@PORT@', port)
686 else: 688 else:
687 self.qemu_opt_script += ' -serial tcp:127.0.0.1:%s' % self.tcpserial_portnum 689 self.qemu_opt_script += ' -serial tcp:127.0.0.1:%s' % port
690
691 if len(ports) > 1:
692 for port in ports[1:]:
693 self.qemu_opt_script += ' -serial tcp:127.0.0.1:%s' % port
688 694
689 def check_and_set(self): 695 def check_and_set(self):
690 """Check configs sanity and set when needed""" 696 """Check configs sanity and set when needed"""