diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2007-07-11 04:06:29 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2007-07-11 04:06:29 +0000 |
commit | badd1c31bd86935eacd1268e5cf360afc5eb5031 (patch) | |
tree | 2217f832dd077bfb07227dd2958bb3b789d08527 /eclass | |
parent | prune unused versions (diff) | |
download | historical-badd1c31bd86935eacd1268e5cf360afc5eb5031.tar.gz historical-badd1c31bd86935eacd1268e5cf360afc5eb5031.tar.bz2 historical-badd1c31bd86935eacd1268e5cf360afc5eb5031.zip |
Resurrect tc-endian as I need it to control some testcases.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain-funcs.eclass | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index 2a2945239e80..8c20cd9ebd96 100644 --- a/eclass/toolchain-funcs.eclass +++ b/eclass/toolchain-funcs.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.70 2007/06/16 07:11:43 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.71 2007/07/11 04:06:29 robbat2 Exp $ # # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> # @@ -172,6 +172,31 @@ tc-arch-kernel() { tc-arch() { tc-ninja_magic_to_arch portage $@ } +tc-endian() { + local host=$1 + [[ -z ${host} ]] && host=${CTARGET:-${CHOST}} + host=${host%%-*} + + case ${host} in + alpha*) echo big;; + arm*b*) echo big;; + arm*) 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;; + s390*) echo big;; + sh*b*) echo big;; + sh*) echo little;; + sparc*) echo big;; + x86_64*) echo little;; + *) echo wtf;; + esac +} # Returns the version as by `$CC -dumpversion` gcc-fullversion() { |