diff options
Diffstat (limited to 'config.sub')
-rwxr-xr-x | config.sub | 67 |
1 files changed, 46 insertions, 21 deletions
diff --git a/config.sub b/config.sub index c2d125724..2d8169626 100755 --- a/config.sub +++ b/config.sub | |||
@@ -1,10 +1,10 @@ | |||
1 | #! /bin/sh | 1 | #! /bin/sh |
2 | # Configuration validation subroutine script. | 2 | # Configuration validation subroutine script. |
3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | 3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
4 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 | 4 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, |
5 | # Free Software Foundation, Inc. | 5 | # 2011 Free Software Foundation, Inc. |
6 | 6 | ||
7 | timestamp='2010-01-22' | 7 | timestamp='2011-01-01' |
8 | 8 | ||
9 | # This file is (in principle) common to ALL GNU software. | 9 | # This file is (in principle) common to ALL GNU software. |
10 | # The presence of a machine in this file suggests that SOME GNU software | 10 | # The presence of a machine in this file suggests that SOME GNU software |
@@ -124,8 +124,9 @@ esac | |||
124 | # Here we must recognize all the valid KERNEL-OS combinations. | 124 | # Here we must recognize all the valid KERNEL-OS combinations. |
125 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` | 125 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
126 | case $maybe_os in | 126 | case $maybe_os in |
127 | nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ | 127 | nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ |
128 | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ | 128 | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ |
129 | knetbsd*-gnu* | netbsd*-gnu* | \ | ||
129 | kopensolaris*-gnu* | \ | 130 | kopensolaris*-gnu* | \ |
130 | storm-chaos* | os2-emx* | rtmk-nova*) | 131 | storm-chaos* | os2-emx* | rtmk-nova*) |
131 | os=-$maybe_os | 132 | os=-$maybe_os |
@@ -282,6 +283,7 @@ case $basic_machine in | |||
282 | | moxie \ | 283 | | moxie \ |
283 | | mt \ | 284 | | mt \ |
284 | | msp430 \ | 285 | | msp430 \ |
286 | | nds32 | nds32le | nds32be \ | ||
285 | | nios | nios2 \ | 287 | | nios | nios2 \ |
286 | | ns16k | ns32k \ | 288 | | ns16k | ns32k \ |
287 | | or32 \ | 289 | | or32 \ |
@@ -295,7 +297,7 @@ case $basic_machine in | |||
295 | | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | 297 | | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ |
296 | | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | 298 | | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
297 | | spu | strongarm \ | 299 | | spu | strongarm \ |
298 | | tahoe | thumb | tic4x | tic80 | tron \ | 300 | | tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ |
299 | | ubicom32 \ | 301 | | ubicom32 \ |
300 | | v850 | v850e \ | 302 | | v850 | v850e \ |
301 | | we32k \ | 303 | | we32k \ |
@@ -303,6 +305,15 @@ case $basic_machine in | |||
303 | | z8k | z80) | 305 | | z8k | z80) |
304 | basic_machine=$basic_machine-unknown | 306 | basic_machine=$basic_machine-unknown |
305 | ;; | 307 | ;; |
308 | c54x) | ||
309 | basic_machine=tic54x-unknown | ||
310 | ;; | ||
311 | c55x) | ||
312 | basic_machine=tic55x-unknown | ||
313 | ;; | ||
314 | c6x) | ||
315 | basic_machine=tic6x-unknown | ||
316 | ;; | ||
306 | m6811 | m68hc11 | m6812 | m68hc12 | picochip) | 317 | m6811 | m68hc11 | m6812 | m68hc12 | picochip) |
307 | # Motorola 68HC11/12. | 318 | # Motorola 68HC11/12. |
308 | basic_machine=$basic_machine-unknown | 319 | basic_machine=$basic_machine-unknown |
@@ -334,7 +345,7 @@ case $basic_machine in | |||
334 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | 345 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
335 | | avr-* | avr32-* \ | 346 | | avr-* | avr32-* \ |
336 | | bfin-* | bs2000-* \ | 347 | | bfin-* | bs2000-* \ |
337 | | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | 348 | | c[123]* | c30-* | [cjt]90-* | c4x-* \ |
338 | | clipper-* | craynv-* | cydra-* \ | 349 | | clipper-* | craynv-* | cydra-* \ |
339 | | d10v-* | d30v-* | dlx-* \ | 350 | | d10v-* | d30v-* | dlx-* \ |
340 | | elxsi-* \ | 351 | | elxsi-* \ |
@@ -368,6 +379,7 @@ case $basic_machine in | |||
368 | | mmix-* \ | 379 | | mmix-* \ |
369 | | mt-* \ | 380 | | mt-* \ |
370 | | msp430-* \ | 381 | | msp430-* \ |
382 | | nds32-* | nds32le-* | nds32be-* \ | ||
371 | | nios-* | nios2-* \ | 383 | | nios-* | nios2-* \ |
372 | | none-* | np1-* | ns16k-* | ns32k-* \ | 384 | | none-* | np1-* | ns16k-* | ns32k-* \ |
373 | | orion-* \ | 385 | | orion-* \ |
@@ -482,6 +494,15 @@ case $basic_machine in | |||
482 | basic_machine=powerpc-ibm | 494 | basic_machine=powerpc-ibm |
483 | os=-cnk | 495 | os=-cnk |
484 | ;; | 496 | ;; |
497 | c54x-*) | ||
498 | basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
499 | ;; | ||
500 | c55x-*) | ||
501 | basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
502 | ;; | ||
503 | c6x-*) | ||
504 | basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
505 | ;; | ||
485 | c90) | 506 | c90) |
486 | basic_machine=c90-cray | 507 | basic_machine=c90-cray |
487 | os=-unicos | 508 | os=-unicos |
@@ -518,7 +539,7 @@ case $basic_machine in | |||
518 | basic_machine=craynv-cray | 539 | basic_machine=craynv-cray |
519 | os=-unicosmp | 540 | os=-unicosmp |
520 | ;; | 541 | ;; |
521 | cr16) | 542 | cr16 | cr16-*) |
522 | basic_machine=cr16-unknown | 543 | basic_machine=cr16-unknown |
523 | os=-elf | 544 | os=-elf |
524 | ;; | 545 | ;; |
@@ -841,6 +862,12 @@ case $basic_machine in | |||
841 | np1) | 862 | np1) |
842 | basic_machine=np1-gould | 863 | basic_machine=np1-gould |
843 | ;; | 864 | ;; |
865 | neo-tandem) | ||
866 | basic_machine=neo-tandem | ||
867 | ;; | ||
868 | nse-tandem) | ||
869 | basic_machine=nse-tandem | ||
870 | ;; | ||
844 | nsr-tandem) | 871 | nsr-tandem) |
845 | basic_machine=nsr-tandem | 872 | basic_machine=nsr-tandem |
846 | ;; | 873 | ;; |
@@ -1075,18 +1102,6 @@ case $basic_machine in | |||
1075 | basic_machine=t90-cray | 1102 | basic_machine=t90-cray |
1076 | os=-unicos | 1103 | os=-unicos |
1077 | ;; | 1104 | ;; |
1078 | tic54x | c54x*) | ||
1079 | basic_machine=tic54x-unknown | ||
1080 | os=-coff | ||
1081 | ;; | ||
1082 | tic55x | c55x*) | ||
1083 | basic_machine=tic55x-unknown | ||
1084 | os=-coff | ||
1085 | ;; | ||
1086 | tic6x | c6x*) | ||
1087 | basic_machine=tic6x-unknown | ||
1088 | os=-coff | ||
1089 | ;; | ||
1090 | # This must be matched before tile*. | 1105 | # This must be matched before tile*. |
1091 | tilegx*) | 1106 | tilegx*) |
1092 | basic_machine=tilegx-unknown | 1107 | basic_machine=tilegx-unknown |
@@ -1301,7 +1316,8 @@ case $os in | |||
1301 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | 1316 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1302 | | -chorusos* | -chorusrdb* | -cegcc* \ | 1317 | | -chorusos* | -chorusrdb* | -cegcc* \ |
1303 | | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | 1318 | | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1304 | | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ | 1319 | | -mingw32* | -linux-gnu* | -linux-android* \ |
1320 | | -linux-newlib* | -linux-uclibc* \ | ||
1305 | | -uxpv* | -beos* | -mpeix* | -udk* \ | 1321 | | -uxpv* | -beos* | -mpeix* | -udk* \ |
1306 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | 1322 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1307 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | 1323 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
@@ -1484,6 +1500,15 @@ case $basic_machine in | |||
1484 | c4x-* | tic4x-*) | 1500 | c4x-* | tic4x-*) |
1485 | os=-coff | 1501 | os=-coff |
1486 | ;; | 1502 | ;; |
1503 | tic54x-*) | ||
1504 | os=-coff | ||
1505 | ;; | ||
1506 | tic55x-*) | ||
1507 | os=-coff | ||
1508 | ;; | ||
1509 | tic6x-*) | ||
1510 | os=-coff | ||
1511 | ;; | ||
1487 | # This must come before the *-dec entry. | 1512 | # This must come before the *-dec entry. |
1488 | pdp10-*) | 1513 | pdp10-*) |
1489 | os=-tops20 | 1514 | os=-tops20 |