Changeset c028b22 in mainline for tools/autotool.py


Ignore:
Timestamp:
2011-07-08T17:01:01Z (13 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cc1a727
Parents:
4e36219 (diff), 026793d (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 mainline changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/autotool.py

    r4e36219 rc028b22  
    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:
     
    361363                typedefs.append({'oldtype': "signed %s" % probe['signed_sizes'][b], 'newtype': "int%u_t" % (b * 8)})
    362364               
     365                macros.append({'oldmacro': "unsigned %s" % probe['unsigned_sizes'][b], 'newmacro': "UINT%u_T" % (b * 8)})
     366                macros.append({'oldmacro': "signed %s" % probe['signed_sizes'][b], 'newmacro': "INT%u_T" % (b * 8)})
     367               
    363368                macros.append({'oldmacro': "\"%so\"" % probe['unsigned_strcs'][b], 'newmacro': "PRIo%u" % (b * 8)})
    364369                macros.append({'oldmacro': "\"%su\"" % probe['unsigned_strcs'][b], 'newmacro': "PRIu%u" % (b * 8)})
     
    523528               
    524529                # Compiler
     530                common['CC_ARGS'] = []
    525531                if (config['COMPILER'] == "gcc_cross"):
    526532                        if (config['PLATFORM'] == "abs32le"):
     
    536542                                if (config['CROSS_TARGET'] == "mips32"):
    537543                                        gnu_target = "mipsel-linux-gnu"
     544                                        common['CC_ARGS'].append("-mabi=32")
    538545                       
    539546                        if (config['PLATFORM'] == "amd64"):
     
    555562                        if (config['PLATFORM'] == "mips32"):
    556563                                check_config(config, "MACHINE")
     564                                common['CC_ARGS'].append("-mabi=32")
    557565                               
    558566                                if ((config['MACHINE'] == "lgxemul") or (config['MACHINE'] == "msim")):
     
    563571                                        target = "mips32eb"
    564572                                        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"
    565581                       
    566582                        if (config['PLATFORM'] == "ppc32"):
Note: See TracChangeset for help on using the changeset viewer.