package/gnuconfig: xtensa support
authorMaxim Grigoriev <maxim2405@gmail.com>
Fri, 24 Jul 2009 00:13:28 +0000 (02:13 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 24 Jul 2009 00:13:28 +0000 (02:13 +0200)
Part of #163.

Signed-off-by: Maxim Grigoriev <maxim2405@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/gnuconfig/config.guess
package/gnuconfig/config.sub
package/gnuconfig/testsuite/config-sub.data

index ebf353e3db28d4c4420427200b96f23ac84eba33..ced32b63a1917eca1d76ed93aa5632fb8d54efc6 100755 (executable)
@@ -4,7 +4,7 @@
 #   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
 #   Inc.
 
-timestamp='2007-07-22'
+timestamp='2009-07-24'
 
 # This file is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
@@ -971,8 +971,8 @@ EOF
     x86_64:Linux:*:*)
        echo x86_64-unknown-linux-${LIBC}
        exit ;;
-    xtensa:Linux:*:*)
-       echo xtensa-unknown-linux-${LIBC}
+    xtensa*:Linux:*:*)
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
        exit ;;
     i*86:Linux:*:*)
        # The BFD linker knows what the default object file format is, so
index 392e21fc20d2d439472481ad46feaa939f2c1095..efbb230f470171a79391e24f1590612f88713233 100755 (executable)
@@ -370,10 +370,14 @@ case $basic_machine in
        | v850-* | v850e-* | vax-* \
        | we32k-* \
        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
-       | xstormy16-* | xtensa-* \
+       | xstormy16-* | xtensa*-* \
        | ymp-* \
        | z8k-*)
                ;;
+       # Recognize the basic CPU types without company name, with glob match.
+       xtensa*)
+               basic_machine=$basic_machine-unknown
+               ;;
        # Recognize the various machine names and aliases which stand
        # for a CPU type and a company and sometimes even an OS.
        386bsd)
index 0f2272a14919e1596a5254d6de9b661991ac0dce..2a5e1f1ebcd8deaaba082ffa38128cad17762a10 100644 (file)
@@ -109,6 +109,7 @@ fido-elf                    fido-unknown-elf
 fido                           fido-unknown-none
 xtensa-elf                     xtensa-unknown-elf
 xtensa-linux                   xtensa-unknown-linux-gnu
+xtensa_dc232b-linux            xtensa_dc232b-unknown-linux-gnu
 i386-drops1.0                  i386-pc-drops1.0
 mep                            mep-unknown-elf
 mep-elf                                mep-unknown-elf