Changes in tools/ew.py [8a26f82:e4a1497] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ew.py

    r8a26f82 re4a1497  
    3636import subprocess
    3737import autotool
    38 import platform
    3938
    4039def run_in_console(cmd, title):
     
    4342        subprocess.call(cmdline, shell = True);
    4443
    45 def get_host_native_width():
    46         return int(platform.architecture()[0].strip('bit'))
    47 
    48 def pc_options(guest_width):
    49         opts = ''
    50        
    51         # Do not enable KVM if running 64 bits HelenOS
    52         # on 32 bits host
    53         host_width = get_host_native_width()
    54         if guest_width <= host_width:
    55                 opts = opts + ' -enable-kvm'
    56        
    57         # Remove the leading space
    58         return opts[1:]
     44def pc_options():
     45        return '-enable-kvm'
    5946
    6047def malta_options():
     
    6350def platform_to_qemu_options(platform, machine):
    6451        if platform == 'amd64':
    65                 return 'system-x86_64', pc_options(64)
     52                return 'system-x86_64', pc_options()
    6653        elif platform == 'arm32':
    6754                return 'system-arm', ''
    6855        elif platform == 'ia32':
    69                 return 'system-i386', pc_options(32)
     56                return 'system-i386', pc_options()
    7057        elif platform == 'mips32':
    7158                if machine == 'lmalta':
Note: See TracChangeset for help on using the changeset viewer.