Changeset 0c2d9bb in mainline for tools/autotool.py


Ignore:
Timestamp:
2013-12-25T22:54:29Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b51cf2c
Parents:
f7a33de (diff), ac36aed (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

    rf7a33de r0c2d9bb  
    186186        gnu_target = None
    187187        clang_target = None
     188        helenos_target = None
    188189        cc_args = []
    189190       
     
    195196                        gnu_target = "arm-linux-gnueabi"
    196197                        clang_target = "arm-unknown-linux"
     198                        helenos_target = "arm-helenos-gnueabi"
    197199               
    198200                if (config['CROSS_TARGET'] == "ia32"):
    199201                        gnu_target = "i686-pc-linux-gnu"
    200202                        clang_target = "i386-unknown-linux"
     203                        helenos_target = "i686-pc-helenos"
    201204               
    202205                if (config['CROSS_TARGET'] == "mips32"):
    203206                        gnu_target = "mipsel-linux-gnu"
    204207                        clang_target = "mipsel-unknown-linux"
     208                        helenos_target = "mipsel-helenos"
    205209                        common['CC_ARGS'].append("-mabi=32")
    206210       
     
    209213                gnu_target = "amd64-linux-gnu"
    210214                clang_target = "x86_64-unknown-linux"
     215                helenos_target = "amd64-helenos"
    211216       
    212217        if (config['PLATFORM'] == "arm32"):
     
    214219                gnu_target = "arm-linux-gnueabi"
    215220                clang_target = "arm-unknown-linux"
     221                helenos_target = "arm-helenos-gnueabi"
    216222       
    217223        if (config['PLATFORM'] == "ia32"):
     
    219225                gnu_target = "i686-pc-linux-gnu"
    220226                clang_target = "i386-unknown-linux"
     227                helenos_target = "i686-pc-helenos"
    221228       
    222229        if (config['PLATFORM'] == "ia64"):
    223230                target = config['PLATFORM']
    224231                gnu_target = "ia64-pc-linux-gnu"
     232                helenos_target = "ia64-pc-helenos"
    225233       
    226234        if (config['PLATFORM'] == "mips32"):
     
    232240                        gnu_target = "mipsel-linux-gnu"
    233241                        clang_target = "mipsel-unknown-linux"
     242                        helenos_target = "mipsel-helenos"
    234243               
    235244                if ((config['MACHINE'] == "bmalta")):
     
    237246                        gnu_target = "mips-linux-gnu"
    238247                        clang_target = "mips-unknown-linux"
     248                        helenos_target = "mips-helenos"
    239249       
    240250        if (config['PLATFORM'] == "mips64"):
     
    246256                        gnu_target = "mips64el-linux-gnu"
    247257                        clang_target = "mips64el-unknown-linux"
     258                        helenos_target = "mips64el-helenos"
    248259       
    249260        if (config['PLATFORM'] == "ppc32"):
     
    251262                gnu_target = "ppc-linux-gnu"
    252263                clang_target = "powerpc-unknown-linux"
     264                helenos_target = "ppc-helenos"
     265       
     266        if (config['PLATFORM'] == "sparc32"):
     267                target = config['PLATFORM'];
     268                gnu_target = "sparc-leon3-linux-gnu"
     269                helenos_target = "sparc-leon3-helenos"
    253270       
    254271        if (config['PLATFORM'] == "sparc64"):
     
    256273                gnu_target = "sparc64-linux-gnu"
    257274                clang_target = "sparc-unknown-linux"
    258 
    259         if (config['PLATFORM'] == "sparc32"):
    260                 target = config['PLATFORM'];
    261                 gnu_target = "sparc-leon3-linux-gnu"
    262        
    263         return (target, cc_args, gnu_target, clang_target)
     275                helenos_target = "sparc64-helenos"
     276       
     277        return (target, cc_args, gnu_target, clang_target, helenos_target)
    264278
    265279def check_app(args, name, details):
     
    701715                cross_prefix = "/usr/local/cross"
    702716       
     717        # HelenOS cross-compiler prefix
     718        if ('CROSS_HELENOS_PREFIX' in os.environ):
     719                cross_helenos_prefix = os.environ['CROSS_HELENOS_PREFIX']
     720        else:
     721                cross_helenos_prefix = "/usr/local/cross-helenos"
     722       
    703723        # Prefix binutils tools on Solaris
    704724        if (os.uname()[0] == "SunOS"):
     
    723743                common['CC_ARGS'] = []
    724744                if (config['COMPILER'] == "gcc_cross"):
    725                         target, cc_args, gnu_target, clang_target = get_target(config)
     745                        target, cc_args, gnu_target, clang_target, helenos_target = get_target(config)
    726746                       
    727747                        if (target is None) or (gnu_target is None):
     
    731751                        path = "%s/%s/bin" % (cross_prefix, target)
    732752                        prefix = "%s-" % gnu_target
     753                       
     754                        check_gcc(path, prefix, common, PACKAGE_CROSS)
     755                        check_binutils(path, prefix, common, PACKAGE_CROSS)
     756                       
     757                        check_common(common, "GCC")
     758                        common['CC'] = common['GCC']
     759                        common['CC_ARGS'].extend(cc_args)
     760               
     761                if (config['COMPILER'] == "gcc_helenos"):
     762                        target, cc_args, gnu_target, clang_target, helenos_target = get_target(config)
     763                       
     764                        if (target is None) or (helenos_target is None):
     765                                print_error(["Unsupported compiler target for GNU GCC.",
     766                                             "Please contact the developers of HelenOS."])
     767                       
     768                        path = "%s/%s/bin" % (cross_helenos_prefix, target)
     769                        prefix = "%s-" % helenos_target
    733770                       
    734771                        check_gcc(path, prefix, common, PACKAGE_CROSS)
Note: See TracChangeset for help on using the changeset viewer.