| 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.76 2008/04/16 14:16:45 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.77 2008/06/01 08:56:56 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 |
| … | |
… | |
| 171 | cris*) echo cris;; |
171 | cris*) echo cris;; |
| 172 | hppa*) ninj parisc hppa;; |
172 | hppa*) ninj parisc hppa;; |
| 173 | i?86*) |
173 | i?86*) |
| 174 | # Starting with linux-2.6.24, the 'x86_64' and 'i386' |
174 | # Starting with linux-2.6.24, the 'x86_64' and 'i386' |
| 175 | # trees have been unified into 'x86'. |
175 | # trees have been unified into 'x86'. |
|
|
176 | # FreeBSD still uses i386 |
| 176 | if [[ ${type} == "kern" ]] && [[ $(KV_to_int ${KV}) -lt $(KV_to_int 2.6.24) ]] ; then |
177 | if [[ ${type} == "kern" ]] && [[ $(KV_to_int ${KV}) -lt $(KV_to_int 2.6.24) || ${host} == *freebsd* ]] ; then |
| 177 | echo i386 |
178 | echo i386 |
| 178 | else |
179 | else |
| 179 | echo x86 |
180 | echo x86 |
| 180 | fi |
181 | fi |
| 181 | ;; |
182 | ;; |