| 1 | # Copyright 1999-2007 Gentoo Foundation |
1 | # Copyright 1999-2007 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.72 2007/07/22 19:56:37 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.73 2007/07/22 19:59:48 vapier Exp $ |
| 4 | # |
4 | # |
| 5 | # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> |
5 | # Maintainer: 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...) |
| … | |
… | |
| 162 | && ninj sparc64 sparc \ |
162 | && ninj sparc64 sparc \ |
| 163 | || echo sparc |
163 | || echo sparc |
| 164 | ;; |
164 | ;; |
| 165 | vax*) echo vax;; |
165 | vax*) echo vax;; |
| 166 | x86_64*) ninj x86_64 amd64;; |
166 | x86_64*) ninj x86_64 amd64;; |
| 167 | *) echo ${ARCH};; |
167 | |
|
|
168 | # since our usage of tc-arch is largely concerned with |
|
|
169 | # normalizing inputs for testing ${CTARGET}, let's filter |
|
|
170 | # other cross targets (mingw and such) into the unknown. |
|
|
171 | *) echo unknown;; |
| 168 | esac |
172 | esac |
| 169 | } |
173 | } |
| 170 | tc-arch-kernel() { |
174 | tc-arch-kernel() { |
| 171 | tc-ninja_magic_to_arch kern $@ |
175 | tc-ninja_magic_to_arch kern $@ |
| 172 | } |
176 | } |