/[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.131 Revision 1.132
1# Copyright 1999-2014 Gentoo Foundation 1# Copyright 1999-2014 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.131 2014/11/01 05:19:20 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.132 2015/02/27 06:08:39 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
371 aarch64*) echo arm64;; 371 aarch64*) echo arm64;;
372 alpha*) echo alpha;; 372 alpha*) echo alpha;;
373 arm*) echo arm;; 373 arm*) echo arm;;
374 avr*) ninj avr32 avr;; 374 avr*) ninj avr32 avr;;
375 bfin*) ninj blackfin bfin;; 375 bfin*) ninj blackfin bfin;;
376 c6x) echo c6x;; 376 c6x*) echo c6x;;
377 cris*) echo cris;; 377 cris*) echo cris;;
378 frv) echo frv;; 378 frv*) echo frv;;
379 hexagon) echo hexagon;; 379 hexagon*) echo hexagon;;
380 hppa*) ninj parisc hppa;; 380 hppa*) ninj parisc hppa;;
381 i?86*) 381 i?86*)
382 # Starting with linux-2.6.24, the 'x86_64' and 'i386' 382 # Starting with linux-2.6.24, the 'x86_64' and 'i386'
383 # trees have been unified into 'x86'. 383 # trees have been unified into 'x86'.
384 # FreeBSD still uses i386 384 # FreeBSD still uses i386
388 echo x86 388 echo x86
389 fi 389 fi
390 ;; 390 ;;
391 ia64*) echo ia64;; 391 ia64*) echo ia64;;
392 m68*) echo m68k;; 392 m68*) echo m68k;;
393 metag) echo metag;; 393 metag*) echo metag;;
394 microblaze*) echo microblaze;;
394 mips*) echo mips;; 395 mips*) echo mips;;
395 nios2*) echo nios2;; 396 nios2*) echo nios2;;
396 nios*) echo nios;; 397 nios*) echo nios;;
397 or32) echo openrisc;; 398 or32*) echo openrisc;;
398 powerpc*) 399 powerpc*)
399 # Starting with linux-2.6.15, the 'ppc' and 'ppc64' trees 400 # Starting with linux-2.6.15, the 'ppc' and 'ppc64' trees
400 # have been unified into simply 'powerpc', but until 2.6.16, 401 # have been unified into simply 'powerpc', but until 2.6.16,
401 # ppc32 is still using ARCH="ppc" as default 402 # ppc32 is still using ARCH="ppc" as default
402 if [[ ${type} == "kern" ]] && [[ $(KV_to_int ${KV}) -ge $(KV_to_int 2.6.16) ]] ; then 403 if [[ ${type} == "kern" ]] && [[ $(KV_to_int ${KV}) -ge $(KV_to_int 2.6.16) ]] ; then
415 echo ppc 416 echo ppc
416 fi 417 fi
417 ;; 418 ;;
418 riscv*) echo riscv;; 419 riscv*) echo riscv;;
419 s390*) echo s390;; 420 s390*) echo s390;;
420 score) echo score;; 421 score*) echo score;;
421 sh64*) ninj sh64 sh;; 422 sh64*) ninj sh64 sh;;
422 sh*) echo sh;; 423 sh*) echo sh;;
423 sparc64*) ninj sparc64 sparc;; 424 sparc64*) ninj sparc64 sparc;;
424 sparc*) [[ ${PROFILE_ARCH} == "sparc64" ]] \ 425 sparc*) [[ ${PROFILE_ARCH} == "sparc64" ]] \
425 && ninj sparc64 sparc \ 426 && ninj sparc64 sparc \

Legend:
Removed from v.1.131  
changed lines
  Added in v.1.132

  ViewVC Help
Powered by ViewVC 1.1.20