/[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.43 Revision 1.45
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 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.43 2005/09/15 00:13:10 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.45 2005/10/06 01:52:51 vapier Exp $
4# 4#
5# Author: Toolchain Ninjas <ninjas@gentoo.org> 5# Author: Toolchain Ninjas <ninjas@gentoo.org>
6# 6#
7# This eclass contains (or should) functions to get common info 7# This eclass contains (or should) functions to get common info
8# about the toolchain (libc/compiler/binutils/etc...) 8# about the toolchain (libc/compiler/binutils/etc...)
62 62
63 local search= 63 local search=
64 if [[ -n ${CBUILD} ]] ; then 64 if [[ -n ${CBUILD} ]] ; then
65 search=$(type -p ${CBUILD}-gcc) 65 search=$(type -p ${CBUILD}-gcc)
66 search=${search##*/} 66 search=${search##*/}
67 else
68 search=gcc
69 fi 67 fi
68 search=${search:-gcc}
70 69
71 export BUILD_CC=${search} 70 export BUILD_CC=${search}
72 echo "${search}" 71 echo "${search}"
73} 72}
74 73
97 96
98 case ${host} in 97 case ${host} in
99 alpha*) echo alpha;; 98 alpha*) echo alpha;;
100 x86_64*) ninj x86_64 amd64;; 99 x86_64*) ninj x86_64 amd64;;
101 arm*) echo arm;; 100 arm*) echo arm;;
101 thumb*) echo arm;;
102 hppa*) ninj parisc hppa;; 102 hppa*) ninj parisc hppa;;
103 ia64*) echo ia64;; 103 ia64*) echo ia64;;
104 m68*) echo m68k;; 104 m68*) echo m68k;;
105 mips*) echo mips;; 105 mips*) echo mips;;
106 powerpc64*) echo ppc64;; 106 powerpc64*) echo ppc64;;
134 case ${host} in 134 case ${host} in
135 alpha*) echo big;; 135 alpha*) echo big;;
136 x86_64*) echo little;; 136 x86_64*) echo little;;
137 arm*b*) echo big;; 137 arm*b*) echo big;;
138 arm*) echo little;; 138 arm*) echo little;;
139 thumb*) echo little;;
139 hppa*) echo big;; 140 hppa*) echo big;;
140 ia64*) echo little;; 141 ia64*) echo little;;
141 m68*) echo big;; 142 m68*) echo big;;
142 mips*l*) echo little;; 143 mips*l*) echo little;;
143 mips*) echo big;; 144 mips*) echo big;;

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.45

  ViewVC Help
Powered by ViewVC 1.1.20