Changes in tools/ew.py [c35cc8b:06f10ac] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ew.py

    rc35cc8b r06f10ac  
    7676
    7777def 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']
    8379        for termemu in emus:
    8480                try:
    85                         subprocess.check_output('which ' + termemu, shell = True, stderr = subprocess.STDOUT)
     81                        subprocess.check_output('which ' + termemu, shell = True)
    8682                        return termemu
    8783                except:
     
    9389def run_in_console(cmd, title):
    9490        temu = termemu_detect()
    95 
    96         if os.path.basename(temu.split(' ')[0]) in ['gnome-terminal', 'foot']:
     91        if temu == 'gnome-terminal':
    9792                cmdline = temu + ' -- ' + cmd
    9893        else:
     
    178173                        raise Exception
    179174                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"'
    184176
    185177                # processor = 'sun4v'
     
    293285        if (is_override('nographic')):
    294286                cmdline += ' -nographic'
    295                 console = True
    296287
    297288        if (not console and (not is_override('nographic')) and not is_override('noserial')):
     
    336327def msim_run(platform, machine, processor):
    337328        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')
    339330
    340331def spike_run(platform, machine, processor):
     
    419410                                'image' : 'image.iso',
    420411                                'audio' : False,
    421                                 'console' : False,
     412                                'console' : True,
    422413                                'net' : False,
    423414                                'usb' : False,
     
    427418                        'sun4v' : {
    428419                                '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',
    433421                                'audio' : False,
    434422                                'console' : True,
Note: See TracChangeset for help on using the changeset viewer.