| 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.103 2010/10/28 04:16:27 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.104 2011/07/12 14:29:41 aballier Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: toolchain-funcs.eclass |
5 | # @ECLASS: toolchain-funcs.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # Toolchain Ninjas <toolchain@gentoo.org> |
7 | # Toolchain Ninjas <toolchain@gentoo.org> |
| 8 | # @BLURB: functions to query common info about the toolchain |
8 | # @BLURB: functions to query common info about the toolchain |
| … | |
… | |
| 303 | sparc*) [[ ${PROFILE_ARCH} == "sparc64" ]] \ |
303 | sparc*) [[ ${PROFILE_ARCH} == "sparc64" ]] \ |
| 304 | && ninj sparc64 sparc \ |
304 | && ninj sparc64 sparc \ |
| 305 | || echo sparc |
305 | || echo sparc |
| 306 | ;; |
306 | ;; |
| 307 | vax*) echo vax;; |
307 | vax*) echo vax;; |
|
|
308 | x86_64*freebsd*) echo amd64;; |
| 308 | x86_64*) |
309 | x86_64*) |
| 309 | # Starting with linux-2.6.24, the 'x86_64' and 'i386' |
310 | # Starting with linux-2.6.24, the 'x86_64' and 'i386' |
| 310 | # trees have been unified into 'x86'. |
311 | # trees have been unified into 'x86'. |
| 311 | if [[ ${type} == "kern" ]] && [[ $(KV_to_int ${KV}) -ge $(KV_to_int 2.6.24) ]] ; then |
312 | if [[ ${type} == "kern" ]] && [[ $(KV_to_int ${KV}) -ge $(KV_to_int 2.6.24) ]] ; then |
| 312 | echo x86 |
313 | echo x86 |