diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-01-04 04:59:54 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-01-04 04:59:54 +0000 |
commit | e9477ab962588310a55fa7cc4e190862103a27d3 (patch) | |
tree | 240769263774b2bedbc0e9ba5c5e3c42d2e6079e /eclass | |
parent | New upstream version. (diff) | |
download | gentoo-2-e9477ab962588310a55fa7cc4e190862103a27d3.tar.gz gentoo-2-e9477ab962588310a55fa7cc4e190862103a27d3.tar.bz2 gentoo-2-e9477ab962588310a55fa7cc4e190862103a27d3.zip |
add support for newer ppc kernels thanks to hansmi
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain-funcs.eclass | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index f5802a1eb123..7591b4cea4d6 100644 --- a/eclass/toolchain-funcs.eclass +++ b/eclass/toolchain-funcs.eclass @@ -1,6 +1,6 @@ # 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.48 2005/11/03 10:10:48 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.49 2006/01/04 04:59:54 vapier Exp $ # # Author: Toolchain Ninjas <toolchain@gentoo.org> # @@ -103,9 +103,16 @@ ninj() { [[ ${type} == "kern" ]] && echo $1 || echo $2 ; } m68*) echo m68k;; mips*) echo mips;; powerpc64*) echo ppc64;; - powerpc*) [[ ${PROFILE_ARCH} == "ppc64" ]] \ - && ninj ppc64 ppc \ - || echo ppc + powerpc*) + # Starting with linux-2.6.15, the 'ppc' and 'ppc64' trees + # have been unified into simply 'powerpc' + if [[ $(KV_to_int ${KV}) -ge $(KV_to_int 2.6.15) ]] ; then + echo powerpc + elif [[ ${host} == powerpc64* ]] ; then + echo ppc64 + else + echo ppc + fi ;; s390*) echo s390;; sh64*) ninj sh64 sh;; |