diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-07-22 19:59:48 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-07-22 19:59:48 +0000 |
commit | 43cfcafc5a93831bad44c686d934ffa47e79064c (patch) | |
tree | 4967fdd82b3c055e64e418d3aab3bea1d1f33ae8 /eclass/toolchain-funcs.eclass | |
parent | add avr to the arch list (diff) | |
download | historical-43cfcafc5a93831bad44c686d934ffa47e79064c.tar.gz historical-43cfcafc5a93831bad44c686d934ffa47e79064c.tar.bz2 historical-43cfcafc5a93831bad44c686d934ffa47e79064c.zip |
filter unknown targets into the unknown category instead of falling back to the host arch #186073
Diffstat (limited to 'eclass/toolchain-funcs.eclass')
-rw-r--r-- | eclass/toolchain-funcs.eclass | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index e13c419f6e26..fb992b915cb1 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.72 2007/07/22 19:56:37 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.73 2007/07/22 19:59:48 vapier Exp $ # # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> # @@ -164,7 +164,11 @@ ninj() { [[ ${type} == "kern" ]] && echo $1 || echo $2 ; } ;; vax*) echo vax;; x86_64*) ninj x86_64 amd64;; - *) echo ${ARCH};; + + # since our usage of tc-arch is largely concerned with + # normalizing inputs for testing ${CTARGET}, let's filter + # other cross targets (mingw and such) into the unknown. + *) echo unknown;; esac } tc-arch-kernel() { |