| 1 | # Copyright 1999-2006 Gentoo Foundation |
1 | # Copyright 1999-2006 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.52 2006/01/15 20:21:59 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.53 2006/01/15 20:31:52 vapier Exp $ |
| 4 | # |
4 | # |
| 5 | # Author: Toolchain Ninjas <toolchain@gentoo.org> |
5 | # Author: Toolchain Ninjas <toolchain@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...) |
| … | |
… | |
| 94 | [[ -z ${host} ]] && host=${CTARGET:-${CHOST}} |
94 | [[ -z ${host} ]] && host=${CTARGET:-${CHOST}} |
| 95 | |
95 | |
| 96 | case ${host} in |
96 | case ${host} in |
| 97 | alpha*) echo alpha;; |
97 | alpha*) echo alpha;; |
| 98 | arm*) echo arm;; |
98 | arm*) echo arm;; |
| 99 | bfin*) ninj bfin blackfin;; |
99 | bfin*) ninj blackfin bfin;; |
| 100 | cris*) echo cris;; |
100 | cris*) echo cris;; |
| 101 | hppa*) ninj parisc hppa;; |
101 | hppa*) ninj parisc hppa;; |
| 102 | i?86*) ninj i386 x86;; |
102 | i?86*) ninj i386 x86;; |
| 103 | ia64*) echo ia64;; |
103 | ia64*) echo ia64;; |
| 104 | m68*) echo m68k;; |
104 | m68*) echo m68k;; |