/[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.115 Revision 1.116
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 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.115 2012/07/26 16:43:59 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.116 2012/09/13 05:06: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
358 local type=$1 358 local type=$1
359 local host=$2 359 local host=$2
360 [[ -z ${host} ]] && host=${CTARGET:-${CHOST}} 360 [[ -z ${host} ]] && host=${CTARGET:-${CHOST}}
361 361
362 case ${host} in 362 case ${host} in
363 aarch64*) ninj aarch64 arm;;
363 alpha*) echo alpha;; 364 alpha*) echo alpha;;
364 arm*) echo arm;; 365 arm*) echo arm;;
365 avr*) ninj avr32 avr;; 366 avr*) ninj avr32 avr;;
366 bfin*) ninj blackfin bfin;; 367 bfin*) ninj blackfin bfin;;
367 cris*) echo cris;; 368 cris*) echo cris;;
444 local host=$1 445 local host=$1
445 [[ -z ${host} ]] && host=${CTARGET:-${CHOST}} 446 [[ -z ${host} ]] && host=${CTARGET:-${CHOST}}
446 host=${host%%-*} 447 host=${host%%-*}
447 448
448 case ${host} in 449 case ${host} in
450 aarch64*be) echo big;;
451 aarch64) echo little;;
449 alpha*) echo big;; 452 alpha*) echo big;;
450 arm*b*) echo big;; 453 arm*b*) echo big;;
451 arm*) echo little;; 454 arm*) echo little;;
452 cris*) echo little;; 455 cris*) echo little;;
453 hppa*) echo big;; 456 hppa*) echo big;;

Legend:
Removed from v.1.115  
changed lines
  Added in v.1.116

  ViewVC Help
Powered by ViewVC 1.1.20