/[gentoo-x86]/eclass/toolchain-funcs.eclass
Gentoo

Diff of /eclass/toolchain-funcs.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.74 Revision 1.75
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.74 2007/08/17 10:14:13 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.75 2008/01/02 01:01:03 vapier 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
168 arm*) echo arm;; 168 arm*) echo arm;;
169 avr*) ninj avr32 avr;; 169 avr*) ninj avr32 avr;;
170 bfin*) ninj blackfin bfin;; 170 bfin*) ninj blackfin bfin;;
171 cris*) echo cris;; 171 cris*) echo cris;;
172 hppa*) ninj parisc hppa;; 172 hppa*) ninj parisc hppa;;
173 i?86*) ninj i386 x86;; 173 i?86*)
174 # Starting with linux-2.6.24, the 'x86_64' and 'i386'
175 # trees have been unified into 'x86'.
176 if [[ ${type} == "kern" ]] && [[ $(KV_to_int ${KV}) -lt $(KV_to_int 2.6.24) ]] ; then
177 echo i386
178 else
179 echo x86
180 fi
181 ;;
174 ia64*) echo ia64;; 182 ia64*) echo ia64;;
175 m68*) echo m68k;; 183 m68*) echo m68k;;
176 mips*) echo mips;; 184 mips*) echo mips;;
177 nios2*) echo nios2;; 185 nios2*) echo nios2;;
178 nios*) echo nios;; 186 nios*) echo nios;;
203 sparc*) [[ ${PROFILE_ARCH} == "sparc64" ]] \ 211 sparc*) [[ ${PROFILE_ARCH} == "sparc64" ]] \
204 && ninj sparc64 sparc \ 212 && ninj sparc64 sparc \
205 || echo sparc 213 || echo sparc
206 ;; 214 ;;
207 vax*) echo vax;; 215 vax*) echo vax;;
208 x86_64*) ninj x86_64 amd64;; 216 x86_64*)
217 # Starting with linux-2.6.24, the 'x86_64' and 'i386'
218 # trees have been unified into 'x86'.
219 if [[ ${type} == "kern" ]] && [[ $(KV_to_int ${KV}) -ge $(KV_to_int 2.6.24) ]] ; then
220 echo x86
221 else
222 ninj x86_64 amd64
223 fi
224 ;;
209 225
210 # since our usage of tc-arch is largely concerned with 226 # since our usage of tc-arch is largely concerned with
211 # normalizing inputs for testing ${CTARGET}, let's filter 227 # normalizing inputs for testing ${CTARGET}, let's filter
212 # other cross targets (mingw and such) into the unknown. 228 # other cross targets (mingw and such) into the unknown.
213 *) echo unknown;; 229 *) echo unknown;;

Legend:
Removed from v.1.74  
changed lines
  Added in v.1.75

  ViewVC Help
Powered by ViewVC 1.1.20