diff options
author | Matt Turner <mattst88@gentoo.org> | 2013-07-30 02:08:54 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2013-07-30 02:08:54 +0000 |
commit | e99dafa9692904a948db9f1ba4106d7830da744d (patch) | |
tree | 9dc09689acf1fd3d551fa42c18dc0205e18afa44 /eclass/multilib-build.eclass | |
parent | Unhide ABI_MIPS. (diff) | |
download | historical-e99dafa9692904a948db9f1ba4106d7830da744d.tar.gz historical-e99dafa9692904a948db9f1ba4106d7830da744d.tar.bz2 historical-e99dafa9692904a948db9f1ba4106d7830da744d.zip |
Add MIPS support to multilib-build.eclass.
Diffstat (limited to 'eclass/multilib-build.eclass')
-rw-r--r-- | eclass/multilib-build.eclass | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/eclass/multilib-build.eclass b/eclass/multilib-build.eclass index 16db23530cdc..868702f47bb7 100644 --- a/eclass/multilib-build.eclass +++ b/eclass/multilib-build.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v 1.16 2013/07/27 17:31:47 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v 1.17 2013/07/30 02:08:54 mattst88 Exp $ # @ECLASS: multilib-build.eclass # @MAINTAINER: @@ -35,6 +35,9 @@ _MULTILIB_FLAGS=( abi_x86_x32:x32 abi_x86_32:x86_fbsd abi_x86_64:amd64_fbsd + abi_mips_n32:n32 + abi_mips_n64:n64 + abi_mips_o32:o32 ) # @ECLASS-VARIABLE: MULTILIB_USEDEP @@ -286,6 +289,14 @@ multilib_prepare_wrappers() { # endif #elif defined(__i386__) /* plain x86 */ # error "abi_x86_32 not supported by the package." +#elif defined(__mips__) +# if(_MIPS_SIM == _ABIN32) /* n32 */ +# error "abi_mips_n32 not supported by the package." +# elif(_MIPS_SIM == _ABI64) /* n64 */ +# error "abi_mips_n64 not supported by the package." +# elif(_MIPS_SIM == _ABIO32) /* o32 */ +# error "abi_mips_o32 not supported by the package." +# endif #else # error "No ABI matched, please report a bug to bugs.gentoo.org" #endif @@ -301,6 +312,12 @@ _EOF_ abi_flag=abi_x86_32;; x32) abi_flag=abi_x86_x32;; + n32) + abi_flag=abi_mips_n32;; + n64) + abi_flag=abi_mips_n64;; + o32) + abi_flag=abi_mips_o32;; *) die "Header wrapping for ${ABI} not supported yet";; esac |