Changes in tools/ew.py [c35cc8b:06f10ac] in mainline
- File:
-
- 1 edited
-
tools/ew.py (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tools/ew.py
rc35cc8b r06f10ac 76 76 77 77 def termemu_detect(): 78 emus = ['gnome-terminal', 'foot', 'xfce4-terminal', 'xterm'] 79 80 if 'TERMINAL' in os.environ: 81 emus.insert(0, os.environ['TERMINAL']) 82 78 emus = ['gnome-terminal', 'xfce4-terminal', 'xterm'] 83 79 for termemu in emus: 84 80 try: 85 subprocess.check_output('which ' + termemu, shell = True , stderr = subprocess.STDOUT)81 subprocess.check_output('which ' + termemu, shell = True) 86 82 return termemu 87 83 except: … … 93 89 def run_in_console(cmd, title): 94 90 temu = termemu_detect() 95 96 if os.path.basename(temu.split(' ')[0]) in ['gnome-terminal', 'foot']: 91 if temu == 'gnome-terminal': 97 92 cmdline = temu + ' -- ' + cmd 98 93 else: … … 178 173 raise Exception 179 174 if processor == 'us': 180 cmdline = '-M sun4u' 181 if is_override('nographic'): 182 cmdline += ' --prom-env boot-args="console=devices/\\hw\\pci0\\01:01.0\\com1\\a"' 183 return 'system-sparc64', cmdline 175 return 'system-sparc64', '-M sun4u --prom-env boot-args="console=devices/\\hw\\pci0\\01:01.0\\com1\\a"' 184 176 185 177 # processor = 'sun4v' … … 293 285 if (is_override('nographic')): 294 286 cmdline += ' -nographic' 295 console = True296 287 297 288 if (not console and (not is_override('nographic')) and not is_override('noserial')): … … 336 327 def msim_run(platform, machine, processor): 337 328 hdisk_mk() 338 run_in_console('msim - n -c ' + TOOLS_DIR + '/conf/msim.conf', 'HelenOS/mips32 on msim')329 run_in_console('msim -c ' + TOOLS_DIR + '/conf/msim.conf', 'HelenOS/mips32 on msim') 339 330 340 331 def spike_run(platform, machine, processor): … … 419 410 'image' : 'image.iso', 420 411 'audio' : False, 421 'console' : False,412 'console' : True, 422 413 'net' : False, 423 414 'usb' : False, … … 427 418 'sun4v' : { 428 419 'run' : qemu_run, 429 # QEMU 8.0.0 ignores the 'file' argument and instead uses 'id', 430 # which defaults to 'pflash0', but can be changed to the same value 431 # as 'file' 432 'image' : '-drive if=pflash,id=image.iso,readonly=on,file=image.iso', 420 'image' : '-drive if=pflash,readonly=on,file=image.iso', 433 421 'audio' : False, 434 422 'console' : True,
Note:
See TracChangeset
for help on using the changeset viewer.
