| 1 | # Copyright 1999-2005 Gentoo Foundation |
1 | # Copyright 1999-2005 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.43 2005/09/15 00:13:10 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.44 2005/09/16 01:44:42 vapier Exp $ |
| 4 | # |
4 | # |
| 5 | # Author: Toolchain Ninjas <ninjas@gentoo.org> |
5 | # Author: Toolchain Ninjas <ninjas@gentoo.org> |
| 6 | # |
6 | # |
| 7 | # This eclass contains (or should) functions to get common info |
7 | # This eclass contains (or should) functions to get common info |
| 8 | # about the toolchain (libc/compiler/binutils/etc...) |
8 | # about the toolchain (libc/compiler/binutils/etc...) |
| … | |
… | |
| 97 | |
97 | |
| 98 | case ${host} in |
98 | case ${host} in |
| 99 | alpha*) echo alpha;; |
99 | alpha*) echo alpha;; |
| 100 | x86_64*) ninj x86_64 amd64;; |
100 | x86_64*) ninj x86_64 amd64;; |
| 101 | arm*) echo arm;; |
101 | arm*) echo arm;; |
|
|
102 | thumb*) echo arm;; |
| 102 | hppa*) ninj parisc hppa;; |
103 | hppa*) ninj parisc hppa;; |
| 103 | ia64*) echo ia64;; |
104 | ia64*) echo ia64;; |
| 104 | m68*) echo m68k;; |
105 | m68*) echo m68k;; |
| 105 | mips*) echo mips;; |
106 | mips*) echo mips;; |
| 106 | powerpc64*) echo ppc64;; |
107 | powerpc64*) echo ppc64;; |
| … | |
… | |
| 134 | case ${host} in |
135 | case ${host} in |
| 135 | alpha*) echo big;; |
136 | alpha*) echo big;; |
| 136 | x86_64*) echo little;; |
137 | x86_64*) echo little;; |
| 137 | arm*b*) echo big;; |
138 | arm*b*) echo big;; |
| 138 | arm*) echo little;; |
139 | arm*) echo little;; |
|
|
140 | thumb*) echo little;; |
| 139 | hppa*) echo big;; |
141 | hppa*) echo big;; |
| 140 | ia64*) echo little;; |
142 | ia64*) echo little;; |
| 141 | m68*) echo big;; |
143 | m68*) echo big;; |
| 142 | mips*l*) echo little;; |
144 | mips*l*) echo little;; |
| 143 | mips*) echo big;; |
145 | mips*) echo big;; |