| 1 | # Copyright 1999-2004 Gentoo Foundation |
1 | # Copyright 1999-2004 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.21 2005/01/11 04:23:42 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.22 2005/01/11 14:49:02 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...) |
| … | |
… | |
| 107 | sparc64*) ninj sparc64 sparc;; |
107 | sparc64*) ninj sparc64 sparc;; |
| 108 | sparc*) echo sparc;; |
108 | sparc*) echo sparc;; |
| 109 | s390*) echo s390;; |
109 | s390*) echo s390;; |
| 110 | sh64*) ninj sh64 sh;; |
110 | sh64*) ninj sh64 sh;; |
| 111 | sh*) echo sh;; |
111 | sh*) echo sh;; |
| 112 | i?86*) echo x86;; |
112 | i?86*) ninj i386 x86;; |
| 113 | *) echo wtf;; |
113 | *) echo wtf;; |
| 114 | esac |
114 | esac |
| 115 | } |
115 | } |
| 116 | tc-arch-kernel() { |
116 | tc-arch-kernel() { |
| 117 | tc-ninja_magic_to_arch kern $@ |
117 | tc-ninja_magic_to_arch kern $@ |