Changeset 94dfb92 in mainline for tools/ew.py


Ignore:
Timestamp:
2013-05-30T13:05:10Z (11 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9e40355e, b8e72fd1
Parents:
c90aed4 (diff), ea15a89a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge partial Clang reviving

Merge from lp:~vojtech-horky/helenos/misc revives Clang support for ia32
and amd64 - it is possible to compile HelenOS with Clang 3.2 again. The
created image fails to boot, though. For ia32, the problem is probably
in some HID driver, with amd64 it crashes before reaching GUI, still do
not know why.

Merging also minor improvement to ew.py - do not use KVM when running
amd64 on 32-bit host.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ew.py

    rc90aed4 r94dfb92  
    3636import subprocess
    3737import autotool
     38import platform
    3839
    3940def run_in_console(cmd, title):
     
    4243        subprocess.call(cmdline, shell = True);
    4344
    44 def pc_options():
    45         return '-enable-kvm'
     45def get_host_native_width():
     46        return int(platform.architecture()[0].strip('bit'))
     47
     48def 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:]
    4659
    4760def malta_options():
     
    5063def platform_to_qemu_options(platform, machine):
    5164        if platform == 'amd64':
    52                 return 'system-x86_64', pc_options()
     65                return 'system-x86_64', pc_options(64)
    5366        elif platform == 'arm32':
    5467                return 'system-arm', ''
    5568        elif platform == 'ia32':
    56                 return 'system-i386', pc_options()
     69                return 'system-i386', pc_options(32)
    5770        elif platform == 'mips32':
    5871                if machine == 'lmalta':
Note: See TracChangeset for help on using the changeset viewer.