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