Changes in tools/autotool.py [0dd022ec:6db5d4b] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/autotool.py

    r0dd022ec r6db5d4b  
    186186        gnu_target = None
    187187        clang_target = None
    188         helenos_target = None
    189188        cc_args = []
    190189       
     
    196195                        gnu_target = "arm-linux-gnueabi"
    197196                        clang_target = "arm-unknown-linux"
    198                         helenos_target = "arm-helenos-gnueabi"
    199197               
    200198                if (config['CROSS_TARGET'] == "ia32"):
    201199                        gnu_target = "i686-pc-linux-gnu"
    202200                        clang_target = "i386-unknown-linux"
    203                         helenos_target = "i686-pc-helenos"
    204201               
    205202                if (config['CROSS_TARGET'] == "mips32"):
    206203                        gnu_target = "mipsel-linux-gnu"
    207204                        clang_target = "mipsel-unknown-linux"
    208                         helenos_target = "mipsel-helenos"
    209205                        common['CC_ARGS'].append("-mabi=32")
    210206       
     
    213209                gnu_target = "amd64-linux-gnu"
    214210                clang_target = "x86_64-unknown-linux"
    215                 helenos_target = "amd64-helenos"
    216211       
    217212        if (config['PLATFORM'] == "arm32"):
     
    219214                gnu_target = "arm-linux-gnueabi"
    220215                clang_target = "arm-unknown-linux"
    221                 helenos_target = "arm-helenos-gnueabi"
    222216       
    223217        if (config['PLATFORM'] == "ia32"):
     
    225219                gnu_target = "i686-pc-linux-gnu"
    226220                clang_target = "i386-unknown-linux"
    227                 helenos_target = "i686-pc-helenos"
    228221       
    229222        if (config['PLATFORM'] == "ia64"):
    230223                target = config['PLATFORM']
    231224                gnu_target = "ia64-pc-linux-gnu"
    232                 helenos_target = "ia64-pc-helenos"
    233225       
    234226        if (config['PLATFORM'] == "mips32"):
     
    240232                        gnu_target = "mipsel-linux-gnu"
    241233                        clang_target = "mipsel-unknown-linux"
    242                         helenos_target = "mipsel-helenos"
    243234               
    244235                if ((config['MACHINE'] == "bmalta")):
     
    246237                        gnu_target = "mips-linux-gnu"
    247238                        clang_target = "mips-unknown-linux"
    248                         helenos_target = "mips-helenos"
    249239       
    250240        if (config['PLATFORM'] == "mips64"):
     
    256246                        gnu_target = "mips64el-linux-gnu"
    257247                        clang_target = "mips64el-unknown-linux"
    258                         helenos_target = "mips64el-helenos"
    259248       
    260249        if (config['PLATFORM'] == "ppc32"):
     
    262251                gnu_target = "ppc-linux-gnu"
    263252                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"
    270253       
    271254        if (config['PLATFORM'] == "sparc64"):
     
    273256                gnu_target = "sparc64-linux-gnu"
    274257                clang_target = "sparc-unknown-linux"
    275                 helenos_target = "sparc64-helenos"
    276        
    277         return (target, cc_args, gnu_target, clang_target, helenos_target)
     258       
     259        return (target, cc_args, gnu_target, clang_target)
    278260
    279261def check_app(args, name, details):
     
    715697                cross_prefix = "/usr/local/cross"
    716698       
    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        
    723699        # Prefix binutils tools on Solaris
    724700        if (os.uname()[0] == "SunOS"):
     
    743719                common['CC_ARGS'] = []
    744720                if (config['COMPILER'] == "gcc_cross"):
    745                         target, cc_args, gnu_target, clang_target, helenos_target = get_target(config)
     721                        target, cc_args, gnu_target, clang_target = get_target(config)
    746722                       
    747723                        if (target is None) or (gnu_target is None):
     
    759735                        common['CC_ARGS'].extend(cc_args)
    760736               
    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
    770                        
    771                         check_gcc(path, prefix, common, PACKAGE_CROSS)
    772                         check_binutils(path, prefix, common, PACKAGE_CROSS)
    773                        
    774                         check_common(common, "GCC")
    775                         common['CC'] = common['GCC']
    776                         common['CC_ARGS'].extend(cc_args)
    777                
    778737                if (config['COMPILER'] == "gcc_native"):
    779738                        check_gcc(None, "", common, PACKAGE_GCC)
     
    790749               
    791750                if (config['COMPILER'] == "clang"):
    792                         target, cc_args, gnu_target, clang_target, helenos_target = get_target(config)
     751                        target, cc_args, gnu_target, clang_target = get_target(config)
    793752                       
    794753                        if (target is None) or (gnu_target is None) or (clang_target is None):
Note: See TracChangeset for help on using the changeset viewer.