scripts/config.sub
changeset 2025 b38f4954e4ed
parent 1652 0803f1cf3f72
child 2223 2aff0df5fcca
     1.1 --- a/scripts/config.sub	Sun Nov 22 11:36:41 2009 +0100
     1.2 +++ b/scripts/config.sub	Thu Jul 15 10:18:40 2010 +0200
     1.3 @@ -1,10 +1,10 @@
     1.4  #! /bin/sh
     1.5  # Configuration validation subroutine script.
     1.6  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
     1.7 -#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
     1.8 +#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
     1.9  #   Free Software Foundation, Inc.
    1.10  
    1.11 -timestamp='2009-11-07'
    1.12 +timestamp='2010-05-21'
    1.13  
    1.14  # This file is (in principle) common to ALL GNU software.
    1.15  # The presence of a machine in this file suggests that SOME GNU software
    1.16 @@ -75,8 +75,9 @@
    1.17  version="\
    1.18  GNU config.sub ($timestamp)
    1.19  
    1.20 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
    1.21 -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
    1.22 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
    1.23 +2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
    1.24 +Software Foundation, Inc.
    1.25  
    1.26  This is free software; see the source for copying conditions.  There is NO
    1.27  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
    1.28 @@ -123,8 +124,9 @@
    1.29  # Here we must recognize all the valid KERNEL-OS combinations.
    1.30  maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
    1.31  case $maybe_os in
    1.32 -  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
    1.33 -  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
    1.34 +  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
    1.35 +  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
    1.36 +  knetbsd*-gnu* | netbsd*-gnu* | \
    1.37    kopensolaris*-gnu* | \
    1.38    storm-chaos* | os2-emx* | rtmk-nova*)
    1.39      os=-$maybe_os
    1.40 @@ -294,7 +296,7 @@
    1.41  	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
    1.42  	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
    1.43  	| spu | strongarm \
    1.44 -	| tahoe | thumb | tic4x | tic80 | tron \
    1.45 +	| tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
    1.46  	| ubicom32 \
    1.47  	| v850 | v850e \
    1.48  	| we32k \
    1.49 @@ -302,6 +304,15 @@
    1.50  	| z8k | z80)
    1.51  		basic_machine=$basic_machine-unknown
    1.52  		;;
    1.53 +	c54x)
    1.54 +		basic_machine=tic54x-unknown
    1.55 +		;;
    1.56 +	c55x)
    1.57 +		basic_machine=tic55x-unknown
    1.58 +		;;
    1.59 +	c6x)
    1.60 +		basic_machine=tic6x-unknown
    1.61 +		;;
    1.62  	m6811 | m68hc11 | m6812 | m68hc12 | picochip)
    1.63  		# Motorola 68HC11/12.
    1.64  		basic_machine=$basic_machine-unknown
    1.65 @@ -333,7 +344,7 @@
    1.66  	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
    1.67  	| avr-* | avr32-* \
    1.68  	| bfin-* | bs2000-* \
    1.69 -	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
    1.70 +	| c[123]* | c30-* | [cjt]90-* | c4x-* \
    1.71  	| clipper-* | craynv-* | cydra-* \
    1.72  	| d10v-* | d30v-* | dlx-* \
    1.73  	| elxsi-* \
    1.74 @@ -380,7 +391,8 @@
    1.75  	| sparclite-* \
    1.76  	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
    1.77  	| tahoe-* | thumb-* \
    1.78 -	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
    1.79 +	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
    1.80 +	| tile-* | tilegx-* \
    1.81  	| tron-* \
    1.82  	| ubicom32-* \
    1.83  	| v850-* | v850e-* | vax-* \
    1.84 @@ -480,6 +492,15 @@
    1.85  		basic_machine=powerpc-ibm
    1.86  		os=-cnk
    1.87  		;;
    1.88 +	c54x-*)
    1.89 +		basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
    1.90 +		;;
    1.91 +	c55x-*)
    1.92 +		basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
    1.93 +		;;
    1.94 +	c6x-*)
    1.95 +		basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
    1.96 +		;;
    1.97  	c90)
    1.98  		basic_machine=c90-cray
    1.99  		os=-unicos
   1.100 @@ -1073,17 +1094,10 @@
   1.101  		basic_machine=t90-cray
   1.102  		os=-unicos
   1.103  		;;
   1.104 -	tic54x | c54x*)
   1.105 -		basic_machine=tic54x-unknown
   1.106 -		os=-coff
   1.107 -		;;
   1.108 -	tic55x | c55x*)
   1.109 -		basic_machine=tic55x-unknown
   1.110 -		os=-coff
   1.111 -		;;
   1.112 -	tic6x | c6x*)
   1.113 -		basic_machine=tic6x-unknown
   1.114 -		os=-coff
   1.115 +        # This must be matched before tile*.
   1.116 +        tilegx*)
   1.117 +		basic_machine=tilegx-unknown
   1.118 +		os=-linux-gnu
   1.119  		;;
   1.120  	tile*)
   1.121  		basic_machine=tile-unknown
   1.122 @@ -1256,6 +1270,9 @@
   1.123          # First match some system type aliases
   1.124          # that might get confused with valid system types.
   1.125  	# -solaris* is a basic system type, with this one exception.
   1.126 +        -auroraux)
   1.127 +	        os=-auroraux
   1.128 +		;;
   1.129  	-solaris1 | -solaris1.*)
   1.130  		os=`echo $os | sed -e 's|solaris1|sunos4|'`
   1.131  		;;
   1.132 @@ -1277,8 +1294,8 @@
   1.133  	# -sysv* is not here because it comes later, after sysvr4.
   1.134  	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
   1.135  	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
   1.136 -	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
   1.137 -	      | -kopensolaris* \
   1.138 +	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
   1.139 +	      | -sym* | -kopensolaris* \
   1.140  	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
   1.141  	      | -aos* | -aros* \
   1.142  	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
   1.143 @@ -1291,7 +1308,8 @@
   1.144  	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
   1.145  	      | -chorusos* | -chorusrdb* | -cegcc* \
   1.146  	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
   1.147 -	      | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
   1.148 +	      | -mingw32* | -linux-gnu* | -linux-android* \
   1.149 +	      | -linux-newlib* | -linux-uclibc* \
   1.150  	      | -uxpv* | -beos* | -mpeix* | -udk* \
   1.151  	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
   1.152  	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
   1.153 @@ -1432,6 +1450,8 @@
   1.154  	-dicos*)
   1.155  		os=-dicos
   1.156  		;;
   1.157 +        -nacl*)
   1.158 +	        ;;
   1.159  	-none)
   1.160  		;;
   1.161  	*)
   1.162 @@ -1472,6 +1492,15 @@
   1.163          c4x-* | tic4x-*)
   1.164          	os=-coff
   1.165  		;;
   1.166 +	tic54x-*)
   1.167 +		os=-coff
   1.168 +		;;
   1.169 +	tic55x-*)
   1.170 +		os=-coff
   1.171 +		;;
   1.172 +	tic6x-*)
   1.173 +		os=-coff
   1.174 +		;;
   1.175  	# This must come before the *-dec entry.
   1.176  	pdp10-*)
   1.177  		os=-tops20