summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-10-10 21:19:43 +0000
committerMike Frysinger <vapier@gentoo.org>2005-10-10 21:19:43 +0000
commit1e1fb81eab35c6a1f215cf8f934cc0b2f495035c (patch)
treeae3c5c575e3fea2cd71913006c3af7a3f1893c5d /eclass
parentfix the multilib_env stuff again since previous fixes were reverted when movi... (diff)
downloadgentoo-2-1e1fb81eab35c6a1f215cf8f934cc0b2f495035c.tar.gz
gentoo-2-1e1fb81eab35c6a1f215cf8f934cc0b2f495035c.tar.bz2
gentoo-2-1e1fb81eab35c6a1f215cf8f934cc0b2f495035c.zip
sort arches by alphabetical order and define a few more
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain-funcs.eclass26
1 files changed, 13 insertions, 13 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass
index b8db727192f9..1cde83a5b680 100644
--- a/eclass/toolchain-funcs.eclass
+++ b/eclass/toolchain-funcs.eclass
@@ -1,8 +1,8 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.46 2005/10/06 21:30:23 kevquinn Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.47 2005/10/10 21:19:43 vapier Exp $
#
-# Author: Toolchain Ninjas <ninjas@gentoo.org>
+# Author: Toolchain Ninjas <toolchain@gentoo.org>
#
# This eclass contains (or should) functions to get common info
# about the toolchain (libc/compiler/binutils/etc...)
@@ -96,10 +96,10 @@ ninj() { [[ ${type} == "kern" ]] && echo $1 || echo $2 ; }
case ${host} in
alpha*) echo alpha;;
- x86_64*) ninj x86_64 amd64;;
arm*) echo arm;;
- thumb*) echo arm;;
+ cris*) echo cris;;
hppa*) ninj parisc hppa;;
+ i?86*) ninj i386 x86;;
ia64*) echo ia64;;
m68*) echo m68k;;
mips*) echo mips;;
@@ -108,15 +108,16 @@ ninj() { [[ ${type} == "kern" ]] && echo $1 || echo $2 ; }
&& ninj ppc64 ppc \
|| echo ppc
;;
+ s390*) echo s390;;
+ sh64*) ninj sh64 sh;;
+ sh*) echo sh;;
sparc64*) ninj sparc64 sparc;;
sparc*) [[ ${PROFILE_ARCH} == "sparc64" ]] \
&& ninj sparc64 sparc \
|| echo sparc
;;
- s390*) echo s390;;
- sh64*) ninj sh64 sh;;
- sh*) echo sh;;
- i?86*) ninj i386 x86;;
+ vax*) echo vax;;
+ x86_64*) ninj x86_64 amd64;;
*) echo ${ARCH};;
esac
}
@@ -133,21 +134,21 @@ tc-endian() {
case ${host} in
alpha*) echo big;;
- x86_64*) echo little;;
arm*b*) echo big;;
arm*) echo little;;
- thumb*) echo little;;
+ cris*) echo little;;
hppa*) echo big;;
+ i?86*) echo little;;
ia64*) echo little;;
m68*) echo big;;
mips*l*) echo little;;
mips*) echo big;;
powerpc*) echo big;;
- sparc*) echo big;;
s390*) echo big;;
sh*b*) echo big;;
sh*) echo little;;
- i?86*) echo little;;
+ sparc*) echo big;;
+ x86_64*) echo little;;
*) echo wtf;;
esac
}
@@ -220,4 +221,3 @@ gcc-specs-ssp-to-all() {
directive=$(gcc-specs-directive cc1)
return $([[ ${directive/\{!fno-stack-protector-all:} != ${directive} ]])
}
-