Changeset 2429e4a in mainline for tools/autotool.py


Ignore:
Timestamp:
2011-07-01T16:43:09Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0feaae4
Parents:
f335225
Message:

add initial support for mips64
(it does not do anything useful so far and there are probably severe bugs and ABI violations, but it compiles)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/autotool.py

    rf335225 r2429e4a  
    243243        outf.close()
    244244       
    245         args = [common['CC'], "-S", "-o", PROBE_OUTPUT, PROBE_SOURCE]
     245        args = [common['CC']]
     246        args.extend(common['CC_ARGS'])
     247        args.extend(["-S", "-o", PROBE_OUTPUT, PROBE_SOURCE])
    246248       
    247249        try:
     
    526528               
    527529                # Compiler
     530                common['CC_ARGS'] = []
    528531                if (config['COMPILER'] == "gcc_cross"):
    529532                        if (config['PLATFORM'] == "abs32le"):
     
    539542                                if (config['CROSS_TARGET'] == "mips32"):
    540543                                        gnu_target = "mipsel-linux-gnu"
     544                                        common['CC_ARGS'].append("-mabi=32")
    541545                       
    542546                        if (config['PLATFORM'] == "amd64"):
     
    558562                        if (config['PLATFORM'] == "mips32"):
    559563                                check_config(config, "MACHINE")
     564                                common['CC_ARGS'].append("-mabi=32")
    560565                               
    561566                                if ((config['MACHINE'] == "lgxemul") or (config['MACHINE'] == "msim")):
     
    566571                                        target = "mips32eb"
    567572                                        gnu_target = "mips-linux-gnu"
     573                       
     574                        if (config['PLATFORM'] == "mips64"):
     575                                check_config(config, "MACHINE")
     576                                common['CC_ARGS'].append("-mabi=64")
     577                               
     578                                if (config['MACHINE'] == "msim"):
     579                                        target = config['PLATFORM']
     580                                        gnu_target = "mips64el-linux-gnu"
    568581                       
    569582                        if (config['PLATFORM'] == "ppc32"):
Note: See TracChangeset for help on using the changeset viewer.