/[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.120 Revision 1.121
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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.120 2012/12/29 05:08:54 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.121 2013/05/14 20:40:34 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
365 aarch64*) ninj arm64 arm;; 365 aarch64*) ninj arm64 arm;;
366 alpha*) echo alpha;; 366 alpha*) echo alpha;;
367 arm*) echo arm;; 367 arm*) echo arm;;
368 avr*) ninj avr32 avr;; 368 avr*) ninj avr32 avr;;
369 bfin*) ninj blackfin bfin;; 369 bfin*) ninj blackfin bfin;;
370 c6x) echo c6x;;
370 cris*) echo cris;; 371 cris*) echo cris;;
372 frv) echo frv;;
373 hexagon) echo hexagon;;
371 hppa*) ninj parisc hppa;; 374 hppa*) ninj parisc hppa;;
372 i?86*) 375 i?86*)
373 # Starting with linux-2.6.24, the 'x86_64' and 'i386' 376 # Starting with linux-2.6.24, the 'x86_64' and 'i386'
374 # trees have been unified into 'x86'. 377 # trees have been unified into 'x86'.
375 # FreeBSD still uses i386 378 # FreeBSD still uses i386
379 echo x86 382 echo x86
380 fi 383 fi
381 ;; 384 ;;
382 ia64*) echo ia64;; 385 ia64*) echo ia64;;
383 m68*) echo m68k;; 386 m68*) echo m68k;;
387 metag) echo metag;;
384 mips*) echo mips;; 388 mips*) echo mips;;
385 nios2*) echo nios2;; 389 nios2*) echo nios2;;
386 nios*) echo nios;; 390 nios*) echo nios;;
391 or32) echo openrisc;;
387 powerpc*) 392 powerpc*)
388 # Starting with linux-2.6.15, the 'ppc' and 'ppc64' trees 393 # Starting with linux-2.6.15, the 'ppc' and 'ppc64' trees
389 # have been unified into simply 'powerpc', but until 2.6.16, 394 # have been unified into simply 'powerpc', but until 2.6.16,
390 # ppc32 is still using ARCH="ppc" as default 395 # ppc32 is still using ARCH="ppc" as default
391 if [[ ${type} == "kern" ]] && [[ $(KV_to_int ${KV}) -ge $(KV_to_int 2.6.16) ]] ; then 396 if [[ ${type} == "kern" ]] && [[ $(KV_to_int ${KV}) -ge $(KV_to_int 2.6.16) ]] ; then
403 else 408 else
404 echo ppc 409 echo ppc
405 fi 410 fi
406 ;; 411 ;;
407 s390*) echo s390;; 412 s390*) echo s390;;
413 score) echo score;;
408 sh64*) ninj sh64 sh;; 414 sh64*) ninj sh64 sh;;
409 sh*) echo sh;; 415 sh*) echo sh;;
410 sparc64*) ninj sparc64 sparc;; 416 sparc64*) ninj sparc64 sparc;;
411 sparc*) [[ ${PROFILE_ARCH} == "sparc64" ]] \ 417 sparc*) [[ ${PROFILE_ARCH} == "sparc64" ]] \
412 && ninj sparc64 sparc \ 418 && ninj sparc64 sparc \
413 || echo sparc 419 || echo sparc
414 ;; 420 ;;
421 tile*) echo tile;;
415 vax*) echo vax;; 422 vax*) echo vax;;
416 x86_64*freebsd*) echo amd64;; 423 x86_64*freebsd*) echo amd64;;
417 x86_64*) 424 x86_64*)
418 # Starting with linux-2.6.24, the 'x86_64' and 'i386' 425 # Starting with linux-2.6.24, the 'x86_64' and 'i386'
419 # trees have been unified into 'x86'. 426 # trees have been unified into 'x86'.
421 echo x86 428 echo x86
422 else 429 else
423 ninj x86_64 amd64 430 ninj x86_64 amd64
424 fi 431 fi
425 ;; 432 ;;
433 xtensa*) echo xtensa;;
426 434
427 # since our usage of tc-arch is largely concerned with 435 # since our usage of tc-arch is largely concerned with
428 # normalizing inputs for testing ${CTARGET}, let's filter 436 # normalizing inputs for testing ${CTARGET}, let's filter
429 # other cross targets (mingw and such) into the unknown. 437 # other cross targets (mingw and such) into the unknown.
430 *) echo unknown;; 438 *) echo unknown;;

Legend:
Removed from v.1.120  
changed lines
  Added in v.1.121

  ViewVC Help
Powered by ViewVC 1.1.20