summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/arch/mips')
-rw-r--r--profiles/arch/mips/eapi1
-rw-r--r--profiles/arch/mips/make.defaults22
-rw-r--r--profiles/arch/mips/mips64/eapi1
-rw-r--r--profiles/arch/mips/mips64/make.defaults7
-rw-r--r--profiles/arch/mips/mips64/multilib/eapi1
-rw-r--r--profiles/arch/mips/mips64/multilib/make.defaults24
-rw-r--r--profiles/arch/mips/mips64/multilib/n32/eapi1
-rw-r--r--profiles/arch/mips/mips64/multilib/n32/make.defaults13
-rw-r--r--profiles/arch/mips/mips64/multilib/n32/parent1
-rw-r--r--profiles/arch/mips/mips64/multilib/n32/use.force5
-rw-r--r--profiles/arch/mips/mips64/multilib/n64/eapi1
-rw-r--r--profiles/arch/mips/mips64/multilib/n64/make.defaults13
-rw-r--r--profiles/arch/mips/mips64/multilib/n64/parent1
-rw-r--r--profiles/arch/mips/mips64/multilib/n64/use.force5
-rw-r--r--profiles/arch/mips/mips64/multilib/o32/eapi1
-rw-r--r--profiles/arch/mips/mips64/multilib/o32/make.defaults13
-rw-r--r--profiles/arch/mips/mips64/multilib/o32/parent1
-rw-r--r--profiles/arch/mips/mips64/multilib/o32/use.force5
-rw-r--r--profiles/arch/mips/mips64/multilib/parent2
-rw-r--r--profiles/arch/mips/mips64/multilib/use.force5
-rw-r--r--profiles/arch/mips/mips64/multilib/use.mask9
-rw-r--r--profiles/arch/mips/mips64/n32/eapi1
-rw-r--r--profiles/arch/mips/mips64/n32/make.defaults15
-rw-r--r--profiles/arch/mips/mips64/n32/parent1
-rw-r--r--profiles/arch/mips/mips64/n32/use.force5
-rw-r--r--profiles/arch/mips/mips64/n32/use.mask5
-rw-r--r--profiles/arch/mips/mips64/n64/eapi1
-rw-r--r--profiles/arch/mips/mips64/n64/make.defaults15
-rw-r--r--profiles/arch/mips/mips64/n64/parent1
-rw-r--r--profiles/arch/mips/mips64/n64/use.force5
-rw-r--r--profiles/arch/mips/mips64/n64/use.mask5
-rw-r--r--profiles/arch/mips/mips64/parent1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/eapi1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/make.defaults9
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/eapi1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/make.defaults24
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/n32/eapi1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/n32/make.defaults13
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/n32/parent1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/n32/use.force5
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/n64/eapi1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/n64/make.defaults13
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/n64/parent1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/n64/use.force5
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/o32/eapi1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/o32/make.defaults13
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/o32/parent1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/o32/use.force5
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/parent2
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/use.force5
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/use.mask9
-rw-r--r--profiles/arch/mips/mipsel/mips64el/n32/eapi1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/n32/make.defaults15
-rw-r--r--profiles/arch/mips/mipsel/mips64el/n32/parent1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/n32/use.force5
-rw-r--r--profiles/arch/mips/mipsel/mips64el/n32/use.mask5
-rw-r--r--profiles/arch/mips/mipsel/mips64el/n64/eapi1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/n64/make.defaults15
-rw-r--r--profiles/arch/mips/mipsel/mips64el/n64/parent1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/n64/use.force5
-rw-r--r--profiles/arch/mips/mipsel/mips64el/n64/use.mask5
-rw-r--r--profiles/arch/mips/mipsel/mips64el/parent1
-rw-r--r--profiles/arch/mips/mipsel/o32/eapi1
-rw-r--r--profiles/arch/mips/mipsel/o32/make.defaults15
-rw-r--r--profiles/arch/mips/mipsel/o32/parent1
-rw-r--r--profiles/arch/mips/mipsel/o32/use.force5
-rw-r--r--profiles/arch/mips/mipsel/o32/use.mask5
-rw-r--r--profiles/arch/mips/mipsel/parent1
-rw-r--r--profiles/arch/mips/o32/eapi1
-rw-r--r--profiles/arch/mips/o32/make.defaults15
-rw-r--r--profiles/arch/mips/o32/parent1
-rw-r--r--profiles/arch/mips/o32/use.force5
-rw-r--r--profiles/arch/mips/o32/use.mask5
-rw-r--r--profiles/arch/mips/package.mask56
-rw-r--r--profiles/arch/mips/package.use.force13
-rw-r--r--profiles/arch/mips/package.use.mask124
-rw-r--r--profiles/arch/mips/parent1
-rw-r--r--profiles/arch/mips/use.force6
-rw-r--r--profiles/arch/mips/use.mask385
79 files changed, 993 insertions, 0 deletions
diff --git a/profiles/arch/mips/eapi b/profiles/arch/mips/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/make.defaults b/profiles/arch/mips/make.defaults
new file mode 100644
index 000000000000..7559200d4d0d
--- /dev/null
+++ b/profiles/arch/mips/make.defaults
@@ -0,0 +1,22 @@
+# Copyright 2008-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# 2006/08/18 - Donnie Berkholz <dberkholz@gentoo.org>
+# Defaults for video drivers
+VIDEO_CARDS="fbdev impact newport"
+
+ARCH="mips"
+ACCEPT_KEYWORDS="${ARCH} ~mips"
+
+PROFILE_ARCH="mips"
+
+USE="-fortran -openmp"
+
+LIBDIR_o32="lib"
+LIBDIR_n32="lib32"
+LIBDIR_n64="lib64"
+
+# 2010/12/06 - Matt Turner <mattst88@gentoo.org>
+# Probably missing a bunch for various SGI systems.
+ALSA_CARDS="au1x00"
diff --git a/profiles/arch/mips/mips64/eapi b/profiles/arch/mips/mips64/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/mips64/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/mips64/make.defaults b/profiles/arch/mips/mips64/make.defaults
new file mode 100644
index 000000000000..c1770db2bf8d
--- /dev/null
+++ b/profiles/arch/mips/mips64/make.defaults
@@ -0,0 +1,7 @@
+# Copyright 2010-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+PROFILE_ARCH="mips64"
+
+CHOST="mips64-unknown-linux-gnu"
diff --git a/profiles/arch/mips/mips64/multilib/eapi b/profiles/arch/mips/mips64/multilib/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/mips64/multilib/make.defaults b/profiles/arch/mips/mips64/multilib/make.defaults
new file mode 100644
index 000000000000..dc1569217f1b
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/make.defaults
@@ -0,0 +1,24 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+PROFILE_ARCH="mips64"
+
+CHOST="mips64-unknown-linux-gnu"
+CFLAGS="-O2 -pipe"
+CXXFLAGS="${CFLAGS}"
+FFLAGS="${CFLAGS}"
+FCFLAGS="${CFLAGS}"
+
+CFLAGS_o32="-mabi=32"
+CHOST_o32="${CHOST}"
+
+CFLAGS_n32="-mabi=n32"
+CHOST_n32=${CHOST}
+
+CFLAGS_n64="-mabi=64"
+CHOST_n64=${CHOST}
+
+SYMLINK_LIB="no"
+
+USE_EXPAND_HIDDEN="-ABI_MIPS"
diff --git a/profiles/arch/mips/mips64/multilib/n32/eapi b/profiles/arch/mips/mips64/multilib/n32/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/n32/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/mips64/multilib/n32/make.defaults b/profiles/arch/mips/mips64/multilib/n32/make.defaults
new file mode 100644
index 000000000000..b42e724329ec
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/n32/make.defaults
@@ -0,0 +1,13 @@
+# Copyright 2011-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+MULTILIB_ABIS="n64 o32 n32"
+DEFAULT_ABI="n32"
+ABI="${DEFAULT_ABI}"
+
+CHOST_n64="mips64-unknown-linux-gnuabi64"
+CHOST_o32="mips-unknown-linux-gnu"
+
+ABI_MIPS="n32"
+IUSE_IMPLICIT="abi_mips_n32"
diff --git a/profiles/arch/mips/mips64/multilib/n32/parent b/profiles/arch/mips/mips64/multilib/n32/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/n32/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/mips/mips64/multilib/n32/use.force b/profiles/arch/mips/mips64/multilib/n32/use.force
new file mode 100644
index 000000000000..8c06f165e64d
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/n32/use.force
@@ -0,0 +1,5 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+abi_mips_n32
diff --git a/profiles/arch/mips/mips64/multilib/n64/eapi b/profiles/arch/mips/mips64/multilib/n64/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/n64/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/mips64/multilib/n64/make.defaults b/profiles/arch/mips/mips64/multilib/n64/make.defaults
new file mode 100644
index 000000000000..fe64c10630bc
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/n64/make.defaults
@@ -0,0 +1,13 @@
+# Copyright 2011-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+MULTILIB_ABIS="n32 o32 n64"
+DEFAULT_ABI="n64"
+ABI="${DEFAULT_ABI}"
+
+CHOST_n32="mips64-unknown-linux-gnuabin32"
+CHOST_o32="mips-unknown-linux-gnu"
+
+ABI_MIPS="n64"
+IUSE_IMPLICIT="abi_mips_n64"
diff --git a/profiles/arch/mips/mips64/multilib/n64/parent b/profiles/arch/mips/mips64/multilib/n64/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/n64/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/mips/mips64/multilib/n64/use.force b/profiles/arch/mips/mips64/multilib/n64/use.force
new file mode 100644
index 000000000000..7a7642bc97ff
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/n64/use.force
@@ -0,0 +1,5 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+abi_mips_n64
diff --git a/profiles/arch/mips/mips64/multilib/o32/eapi b/profiles/arch/mips/mips64/multilib/o32/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/o32/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/mips64/multilib/o32/make.defaults b/profiles/arch/mips/mips64/multilib/o32/make.defaults
new file mode 100644
index 000000000000..83ea8284158d
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/o32/make.defaults
@@ -0,0 +1,13 @@
+# Copyright 2011-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+MULTILIB_ABIS="n64 n32 o32"
+DEFAULT_ABI="o32"
+ABI="${DEFAULT_ABI}"
+
+CHOST_n32="mips64-unknown-linux-gnuabin32"
+CHOST_n64="mips64-unknown-linux-gnuabi64"
+
+ABI_MIPS="o32"
+IUSE_IMPLICIT="abi_mips_o32"
diff --git a/profiles/arch/mips/mips64/multilib/o32/parent b/profiles/arch/mips/mips64/multilib/o32/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/o32/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/mips/mips64/multilib/o32/use.force b/profiles/arch/mips/mips64/multilib/o32/use.force
new file mode 100644
index 000000000000..f629a711690b
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/o32/use.force
@@ -0,0 +1,5 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+abi_mips_o32
diff --git a/profiles/arch/mips/mips64/multilib/parent b/profiles/arch/mips/mips64/multilib/parent
new file mode 100644
index 000000000000..a5b4126260cf
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/parent
@@ -0,0 +1,2 @@
+..
+../../../../features/multilib
diff --git a/profiles/arch/mips/mips64/multilib/use.force b/profiles/arch/mips/mips64/multilib/use.force
new file mode 100644
index 000000000000..c29d0bff64c4
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/use.force
@@ -0,0 +1,5 @@
+# Copyright 2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+multilib
diff --git a/profiles/arch/mips/mips64/multilib/use.mask b/profiles/arch/mips/mips64/multilib/use.mask
new file mode 100644
index 000000000000..b944b154f400
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/use.mask
@@ -0,0 +1,9 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# Matt Turner <mattst88@gentoo.org> (29 Jul 2013)
+# Unmask the multilib flags for this arch.
+-abi_mips_o32
+-abi_mips_n32
+-abi_mips_n64
diff --git a/profiles/arch/mips/mips64/n32/eapi b/profiles/arch/mips/mips64/n32/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/mips64/n32/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/mips64/n32/make.defaults b/profiles/arch/mips/mips64/n32/make.defaults
new file mode 100644
index 000000000000..20adc4bf0c8f
--- /dev/null
+++ b/profiles/arch/mips/mips64/n32/make.defaults
@@ -0,0 +1,15 @@
+# Copyright 2011-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+PROFILE_ARCH="mips64"
+
+CHOST="mips64-unknown-linux-gnu"
+
+DEFAULT_ABI="n32"
+ABI="${DEFAULT_ABI}"
+MULTILIB_ABIS="n32"
+CHOST_n32=${CHOST}
+
+ABI_MIPS="n32"
+IUSE_IMPLICIT="abi_mips_n32"
diff --git a/profiles/arch/mips/mips64/n32/parent b/profiles/arch/mips/mips64/n32/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/mips/mips64/n32/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/mips/mips64/n32/use.force b/profiles/arch/mips/mips64/n32/use.force
new file mode 100644
index 000000000000..23c26a92c09e
--- /dev/null
+++ b/profiles/arch/mips/mips64/n32/use.force
@@ -0,0 +1,5 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+abi_mips_n32
diff --git a/profiles/arch/mips/mips64/n32/use.mask b/profiles/arch/mips/mips64/n32/use.mask
new file mode 100644
index 000000000000..865ae31eea41
--- /dev/null
+++ b/profiles/arch/mips/mips64/n32/use.mask
@@ -0,0 +1,5 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+-abi_mips_n32
diff --git a/profiles/arch/mips/mips64/n64/eapi b/profiles/arch/mips/mips64/n64/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/mips64/n64/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/mips64/n64/make.defaults b/profiles/arch/mips/mips64/n64/make.defaults
new file mode 100644
index 000000000000..6aaedbef6372
--- /dev/null
+++ b/profiles/arch/mips/mips64/n64/make.defaults
@@ -0,0 +1,15 @@
+# Copyright 2011-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+PROFILE_ARCH="mips64"
+
+CHOST="mips64-unknown-linux-gnu"
+
+DEFAULT_ABI="n64"
+ABI="${DEFAULT_ABI}"
+MULTILIB_ABIS="n64"
+CHOST_n64=${CHOST}
+
+ABI_MIPS="n64"
+IUSE_IMPLICIT="abi_mips_n64"
diff --git a/profiles/arch/mips/mips64/n64/parent b/profiles/arch/mips/mips64/n64/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/mips/mips64/n64/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/mips/mips64/n64/use.force b/profiles/arch/mips/mips64/n64/use.force
new file mode 100644
index 000000000000..b71b42f4ce10
--- /dev/null
+++ b/profiles/arch/mips/mips64/n64/use.force
@@ -0,0 +1,5 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+abi_mips_n64
diff --git a/profiles/arch/mips/mips64/n64/use.mask b/profiles/arch/mips/mips64/n64/use.mask
new file mode 100644
index 000000000000..58ccc2a185d2
--- /dev/null
+++ b/profiles/arch/mips/mips64/n64/use.mask
@@ -0,0 +1,5 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+-abi_mips_n64
diff --git a/profiles/arch/mips/mips64/parent b/profiles/arch/mips/mips64/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/mips/mips64/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/mips/mipsel/mips64el/eapi b/profiles/arch/mips/mipsel/mips64el/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/mipsel/mips64el/make.defaults b/profiles/arch/mips/mipsel/mips64el/make.defaults
new file mode 100644
index 000000000000..b6dcb64cf027
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/make.defaults
@@ -0,0 +1,9 @@
+# Copyright 2010-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+PROFILE_ARCH="mips64el"
+
+CHOST="mips64el-unknown-linux-gnu"
+
+IUSE_IMPLICIT="-abi_mips_o32"
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/eapi b/profiles/arch/mips/mipsel/mips64el/multilib/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/make.defaults b/profiles/arch/mips/mipsel/mips64el/multilib/make.defaults
new file mode 100644
index 000000000000..8b8e4283dada
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/make.defaults
@@ -0,0 +1,24 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+PROFILE_ARCH="mips64el"
+
+CHOST="mips64el-unknown-linux-gnu"
+CFLAGS="-O2 -pipe"
+CXXFLAGS="${CFLAGS}"
+FFLAGS="${CFLAGS}"
+FCFLAGS="${CFLAGS}"
+
+CFLAGS_o32="-mabi=32"
+CHOST_o32="${CHOST}"
+
+CFLAGS_n32="-mabi=n32"
+CHOST_n32="${CHOST}"
+
+CFLAGS_n64="-mabi=64"
+CHOST_n64="${CHOST}"
+
+SYMLINK_LIB="no"
+
+USE_EXPAND_HIDDEN="-ABI_MIPS"
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/n32/eapi b/profiles/arch/mips/mipsel/mips64el/multilib/n32/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/n32/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/n32/make.defaults b/profiles/arch/mips/mipsel/mips64el/multilib/n32/make.defaults
new file mode 100644
index 000000000000..077bc6a98c77
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/n32/make.defaults
@@ -0,0 +1,13 @@
+# Copyright 2011-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+MULTILIB_ABIS="n64 o32 n32"
+DEFAULT_ABI="n32"
+ABI="${DEFAULT_ABI}"
+
+CHOST_n64="mips64el-unknown-linux-gnuabi64"
+CHOST_o32="mipsel-unknown-linux-gnu"
+
+ABI_MIPS="n32"
+IUSE_IMPLICIT="abi_mips_n32"
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/n32/parent b/profiles/arch/mips/mipsel/mips64el/multilib/n32/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/n32/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/n32/use.force b/profiles/arch/mips/mipsel/mips64el/multilib/n32/use.force
new file mode 100644
index 000000000000..8c06f165e64d
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/n32/use.force
@@ -0,0 +1,5 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+abi_mips_n32
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/n64/eapi b/profiles/arch/mips/mipsel/mips64el/multilib/n64/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/n64/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/n64/make.defaults b/profiles/arch/mips/mipsel/mips64el/multilib/n64/make.defaults
new file mode 100644
index 000000000000..6366a714d3b0
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/n64/make.defaults
@@ -0,0 +1,13 @@
+# Copyright 2011-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+MULTILIB_ABIS="n32 o32 n64"
+DEFAULT_ABI="n64"
+ABI="${DEFAULT_ABI}"
+
+CHOST_n32="mips64el-unknown-linux-gnuabin32"
+CHOST_o32="mipsel-unknown-linux-gnu"
+
+ABI_MIPS="n64"
+IUSE_IMPLICIT="abi_mips_n64"
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/n64/parent b/profiles/arch/mips/mipsel/mips64el/multilib/n64/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/n64/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/n64/use.force b/profiles/arch/mips/mipsel/mips64el/multilib/n64/use.force
new file mode 100644
index 000000000000..7a7642bc97ff
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/n64/use.force
@@ -0,0 +1,5 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+abi_mips_n64
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/o32/eapi b/profiles/arch/mips/mipsel/mips64el/multilib/o32/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/o32/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/o32/make.defaults b/profiles/arch/mips/mipsel/mips64el/multilib/o32/make.defaults
new file mode 100644
index 000000000000..d9c0ef9a94b4
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/o32/make.defaults
@@ -0,0 +1,13 @@
+# Copyright 2011-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+MULTILIB_ABIS="n64 n32 o32"
+DEFAULT_ABI="o32"
+ABI="${DEFAULT_ABI}"
+
+CHOST_n32="mips64el-unknown-linux-gnuabin32"
+CHOST_n64="mips64el-unknown-linux-gnuabi64"
+
+ABI_MIPS="o32"
+IUSE_IMPLICIT="abi_mips_o32"
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/o32/parent b/profiles/arch/mips/mipsel/mips64el/multilib/o32/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/o32/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/o32/use.force b/profiles/arch/mips/mipsel/mips64el/multilib/o32/use.force
new file mode 100644
index 000000000000..f629a711690b
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/o32/use.force
@@ -0,0 +1,5 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+abi_mips_o32
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/parent b/profiles/arch/mips/mipsel/mips64el/multilib/parent
new file mode 100644
index 000000000000..97dffb64c4d1
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/parent
@@ -0,0 +1,2 @@
+..
+../../../../../features/multilib
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/use.force b/profiles/arch/mips/mipsel/mips64el/multilib/use.force
new file mode 100644
index 000000000000..c29d0bff64c4
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/use.force
@@ -0,0 +1,5 @@
+# Copyright 2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+multilib
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/use.mask b/profiles/arch/mips/mipsel/mips64el/multilib/use.mask
new file mode 100644
index 000000000000..b944b154f400
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/use.mask
@@ -0,0 +1,9 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# Matt Turner <mattst88@gentoo.org> (29 Jul 2013)
+# Unmask the multilib flags for this arch.
+-abi_mips_o32
+-abi_mips_n32
+-abi_mips_n64
diff --git a/profiles/arch/mips/mipsel/mips64el/n32/eapi b/profiles/arch/mips/mipsel/mips64el/n32/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/n32/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/mipsel/mips64el/n32/make.defaults b/profiles/arch/mips/mipsel/mips64el/n32/make.defaults
new file mode 100644
index 000000000000..03997902be33
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/n32/make.defaults
@@ -0,0 +1,15 @@
+# Copyright 2010-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+PROFILE_ARCH="mips64el"
+
+CHOST="mips64el-unknown-linux-gnu"
+
+DEFAULT_ABI="n32"
+ABI="${DEFAULT_ABI}"
+MULTILIB_ABIS="n32"
+CHOST_n32=${CHOST}
+
+ABI_MIPS="n32"
+IUSE_IMPLICIT="abi_mips_n32"
diff --git a/profiles/arch/mips/mipsel/mips64el/n32/parent b/profiles/arch/mips/mipsel/mips64el/n32/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/n32/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/mips/mipsel/mips64el/n32/use.force b/profiles/arch/mips/mipsel/mips64el/n32/use.force
new file mode 100644
index 000000000000..23c26a92c09e
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/n32/use.force
@@ -0,0 +1,5 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+abi_mips_n32
diff --git a/profiles/arch/mips/mipsel/mips64el/n32/use.mask b/profiles/arch/mips/mipsel/mips64el/n32/use.mask
new file mode 100644
index 000000000000..865ae31eea41
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/n32/use.mask
@@ -0,0 +1,5 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+-abi_mips_n32
diff --git a/profiles/arch/mips/mipsel/mips64el/n64/eapi b/profiles/arch/mips/mipsel/mips64el/n64/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/n64/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/mipsel/mips64el/n64/make.defaults b/profiles/arch/mips/mipsel/mips64el/n64/make.defaults
new file mode 100644
index 000000000000..a4ecdf884e43
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/n64/make.defaults
@@ -0,0 +1,15 @@
+# Copyright 2010-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+PROFILE_ARCH="mips64el"
+
+CHOST="mips64el-unknown-linux-gnu"
+
+DEFAULT_ABI="n64"
+ABI="${DEFAULT_ABI}"
+MULTILIB_ABIS="n64"
+CHOST_n64=${CHOST}
+
+ABI_MIPS="n64"
+IUSE_IMPLICIT="abi_mips_n64"
diff --git a/profiles/arch/mips/mipsel/mips64el/n64/parent b/profiles/arch/mips/mipsel/mips64el/n64/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/n64/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/mips/mipsel/mips64el/n64/use.force b/profiles/arch/mips/mipsel/mips64el/n64/use.force
new file mode 100644
index 000000000000..b71b42f4ce10
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/n64/use.force
@@ -0,0 +1,5 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+abi_mips_n64
diff --git a/profiles/arch/mips/mipsel/mips64el/n64/use.mask b/profiles/arch/mips/mipsel/mips64el/n64/use.mask
new file mode 100644
index 000000000000..58ccc2a185d2
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/n64/use.mask
@@ -0,0 +1,5 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+-abi_mips_n64
diff --git a/profiles/arch/mips/mipsel/mips64el/parent b/profiles/arch/mips/mipsel/mips64el/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/mips/mipsel/o32/eapi b/profiles/arch/mips/mipsel/o32/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/mipsel/o32/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/mipsel/o32/make.defaults b/profiles/arch/mips/mipsel/o32/make.defaults
new file mode 100644
index 000000000000..acb00413053a
--- /dev/null
+++ b/profiles/arch/mips/mipsel/o32/make.defaults
@@ -0,0 +1,15 @@
+# Copyright 2010-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+PROFILE_ARCH="mipsel"
+
+CHOST="mipsel-unknown-linux-gnu"
+CHOST_o32="mipsel-unknown-linux-gnu"
+
+ABI="o32"
+DEFAULT_ABI="o32"
+MULTILIB_ABIS="o32"
+
+ABI_MIPS="o32"
+IUSE_IMPLICIT="abi_mips_o32"
diff --git a/profiles/arch/mips/mipsel/o32/parent b/profiles/arch/mips/mipsel/o32/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/mips/mipsel/o32/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/mips/mipsel/o32/use.force b/profiles/arch/mips/mipsel/o32/use.force
new file mode 100644
index 000000000000..606ddc05d288
--- /dev/null
+++ b/profiles/arch/mips/mipsel/o32/use.force
@@ -0,0 +1,5 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+abi_mips_o32
diff --git a/profiles/arch/mips/mipsel/o32/use.mask b/profiles/arch/mips/mipsel/o32/use.mask
new file mode 100644
index 000000000000..839a3b8f563f
--- /dev/null
+++ b/profiles/arch/mips/mipsel/o32/use.mask
@@ -0,0 +1,5 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+-abi_mips_o32
diff --git a/profiles/arch/mips/mipsel/parent b/profiles/arch/mips/mipsel/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/mips/mipsel/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/mips/o32/eapi b/profiles/arch/mips/o32/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/o32/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/o32/make.defaults b/profiles/arch/mips/o32/make.defaults
new file mode 100644
index 000000000000..de520d982789
--- /dev/null
+++ b/profiles/arch/mips/o32/make.defaults
@@ -0,0 +1,15 @@
+# Copyright 2010-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+PROFILE_ARCH="mipsel"
+
+CHOST="mips-unknown-linux-gnu"
+CHOST_o32="mips-unknown-linux-gnu"
+
+ABI="o32"
+DEFAULT_ABI="o32"
+MULTILIB_ABIS="o32"
+
+ABI_MIPS="o32"
+IUSE_IMPLICIT="abi_mips_o32"
diff --git a/profiles/arch/mips/o32/parent b/profiles/arch/mips/o32/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/mips/o32/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/mips/o32/use.force b/profiles/arch/mips/o32/use.force
new file mode 100644
index 000000000000..606ddc05d288
--- /dev/null
+++ b/profiles/arch/mips/o32/use.force
@@ -0,0 +1,5 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+abi_mips_o32
diff --git a/profiles/arch/mips/o32/use.mask b/profiles/arch/mips/o32/use.mask
new file mode 100644
index 000000000000..839a3b8f563f
--- /dev/null
+++ b/profiles/arch/mips/o32/use.mask
@@ -0,0 +1,5 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+-abi_mips_o32
diff --git a/profiles/arch/mips/package.mask b/profiles/arch/mips/package.mask
new file mode 100644
index 000000000000..1dfde79b5ac0
--- /dev/null
+++ b/profiles/arch/mips/package.mask
@@ -0,0 +1,56 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# Ben de Groot <yngwin@gentoo.org> (01 Feb 2015)
+# Qt5 mask, pending keywording. Remember unmasking qt5 in use.mask as well.
+>=dev-qt/assistant-5.4.0
+>=dev-qt/designer-5.4.0
+>=dev-qt/linguist-5.4.0
+>=dev-qt/linguist-tools-5.4.0
+>=dev-qt/pixeltool-5.4.0
+>=dev-qt/qdbus-5.4.0
+>=dev-qt/qdbusviewer-5.4.0
+>=dev-qt/qdoc-5.4.0
+>=dev-qt/qtconcurrent-5.4.0
+>=dev-qt/qtcore-5.4.0
+>=dev-qt/qtdbus-5.4.0
+>=dev-qt/qtdeclarative-5.4.0
+>=dev-qt/qtdiag-5.4.0
+>=dev-qt/qtgraphicaleffects-5.4.0
+>=dev-qt/qtgui-5.4.0
+>=dev-qt/qthelp-5.4.0
+>=dev-qt/qtimageformats-5.4.0
+>=dev-qt/qtmultimedia-5.4.0
+>=dev-qt/qtnetwork-5.4.0
+>=dev-qt/qtopengl-5.4.0
+>=dev-qt/qtpaths-5.4.0
+>=dev-qt/qtpositioning-5.4.0
+>=dev-qt/qtprintsupport-5.4.0
+>=dev-qt/qtquick1-5.4.0
+>=dev-qt/qtquickcontrols-5.4.0
+>=dev-qt/qtscript-5.4.0
+>=dev-qt/qtsensors-5.4.0
+>=dev-qt/qtserialport-5.4.0
+>=dev-qt/qtsql-5.4.0
+>=dev-qt/qtsvg-5.4.0
+>=dev-qt/qttest-5.4.0
+>=dev-qt/qttranslations-5.4.0
+>=dev-qt/qtwayland-5.4.0
+>=dev-qt/qtwebkit-5.4.0
+>=dev-qt/qtwebsockets-5.4.0
+>=dev-qt/qtwidgets-5.4.0
+>=dev-qt/qtx11extras-5.4.0
+>=dev-qt/qtxml-5.4.0
+>=dev-qt/qtxmlpatterns-5.4.0
+>=dev-qt/qt-creator-3.3.0
+=app-text/calibre-2*
+>=x11-misc/sddm-0.10.0
+
+# Mask pam_ldap and nss_ldap - openldap dep missing.
+sys-auth/pam_ldap
+sys-auth/nss_ldap
+
+# Mask because of 64-bit code regressions
+# 469976
+=dev-libs/openssl-1.0.1e-r1
diff --git a/profiles/arch/mips/package.use.force b/profiles/arch/mips/package.use.force
new file mode 100644
index 000000000000..a41883017154
--- /dev/null
+++ b/profiles/arch/mips/package.use.force
@@ -0,0 +1,13 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# Mike Frysinger <vapier@gentoo.org> (16 Mar 2015)
+# Needs dev-lang/luajit tested #499974
+dev-libs/efl oldlua
+
+# Vicente Olivert Riera <vincent@gentoo.org> (12 Sep 2014)
+# If deprecated USE flag is not set, www-client/midori will
+# depend on net-libs/webkit-gtk:3 which fails to compile
+# on MIPS
+www-client/midori deprecated
diff --git a/profiles/arch/mips/package.use.mask b/profiles/arch/mips/package.use.mask
new file mode 100644
index 000000000000..304e96eb5a02
--- /dev/null
+++ b/profiles/arch/mips/package.use.mask
@@ -0,0 +1,124 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# Mikle Kolyada <zlogene@gentoo.org> (12 Apr 2015)
+# GNOME Shell does not work on mips
+net-misc/wicd gnome-shell
+
+# Mike Frysinger <vapier@gentoo.org> (16 Mar 2015)
+# Needs sci-physics/bullet tested #499974
+dev-libs/efl physics
+
+# Matthias Maier <tamiko@gentoo.org> (24 Dec 2014)
+# sys-devel/clang is not keyworded
+app-doc/doxygen clang
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (16 Sep 2014)
+# Needs libepoxy keywording, bug #510940
+x11-base/xorg-server glamor wayland
+
+# Davide Pesavento <pesa@gentoo.org> (02 Jun 2014)
+# dev-qt/qtdeclarative:4 is not keyworded on mips
+dev-qt/designer:4 declarative
+
+# Davide Pesavento <pesa@gentoo.org> (02 Jun 2014)
+# connman and networkmanager are not keyworded on mips
+dev-qt/qtbearer:4 connman networkmanager
+
+# Sergey Popov <pinkbyte@gentoo.org> (02 Feb 2014)
+# media-gfx/nvidia-texture-tools is not keyworded on mips
+media-libs/devil nvtt
+
+# Ryan Hill <dirtyepic@gentoo.org> (07 Jan 2014)
+# req net-libs/webkit-gtk:2
+x11-libs/wxGTK webkit
+
+# Markos Chandras <hwoarang@gentoo.org> (05 Jan 2014)
+# Perl is heavily unkeyworded on MIPS. See 497068
+dev-vcs/git mediawiki
+
+# Sergey Popov <pinkbyte@gentoo.org> (02 Sep 2013)
+# Not tested
+media-libs/leptonica webp
+app-text/tesseract webp
+
+# Pacho Ramos <pacho@gentoo.org> (01 Sep 2013)
+# CONFIG_AUDITSYSCALL=y is not implemented, bug #438368
+sys-auth/consolekit pam
+sys-auth/pambase consolekit
+
+# Kacper Kowalik <xarthisius@gentoo.org> (20 May 2011)
+# depends on dev-libs/dmalloc which is not keyworded
+net-nds/ypbind debug
+
+# Richard Brown <rbrown@gentoo.org> (21 Jan 2008)
+# Needs dev-ruby/builder, which isn't keyworded
+dev-ruby/rubygems server
+
+# Wolfram Schlich <wschlich@gentoo.org> (20 Nov 2007)
+# dependency can't be fulfilled at the moment
+net-im/mcabber otr
+
+# Jim Ramsay <lack@gentoo.org> (7 Sep 2007)
+# app-admin/gkrellm may pull in hddtemp, which is not yet available here
+app-admin/gkrellm hddtemp
+
+# Christian Heim <phreak@gentoo.org> (07 Jul 2007)
+# virtual/mysql-5 not keyworded yet, still apr-util has the mips keyword.
+dev-libs/apr-util mysql
+
+# Stuart Longland <redhatter@gentoo.org> (07 Sep 2007)
+# mplayer not tested with these flags yet. I may remove these slowly as I test
+# more functions of mplayer.
+media-video/mplayer bidi bl cddb cdio cdparanoia cpudetection dga dv dvb enca joystick live mad openal pnm pvr radio rar rtc svga tga xanim xinerama zoran
+
+# Gilles Dartiguelongue <eva@gentoo.org> (19 Oct 2007)
+# gdm depends on zenity which is not keyworded
+>=gnome-base/gdm-2.20 remote
+
+# Steve Dibb <beandog@gentoo.org> (01 Nov 2007)
+# needs media-libs/ladspa-sdk keyworded
+media-video/mplayer ladspa
+
+# Richard Brown <rbrown@gentoo.org> (23 Dec 2007)
+# app-xemacs/ruby-modes is not keyworded on this arch
+dev-lang/ruby xemacs
+
+# Sebastian Pipping <sping@gentoo.org> (27 Jan 2010)
+# dev-vcs/bzr is not keyworded on this arch
+# dev-vcs/darcs is not keyworded on this arch
+app-portage/layman bazaar
+app-portage/layman darcs
+
+# deps missing keywords
+games-strategy/freeciv auth ggz
+
+# Mart Raudsepp <leio@gentoo.org> (27 Sept 2010)
+# Extra functionality that has external unkeyworded dependencies
+# and is not tested yet
+net-fs/samba ads cluster debug
+
+# Matt Turner <mattst88@gentoo.org> (06 Dec 2010)
+# dev-db/tokyocabinet not keyworded
+mail-client/mutt tokyocabinet
+
+# Matt Turner <mattst88@gentoo.org> (26 Dec 2010)
+# dev-lang/spidermonkey not keyworded
+www-client/elinks javascript
+
+# Matt Turner <mattst88@gentoo.org> (26 Dec 2010)
+# media-gfx/ufraw not keyworded
+media-gfx/imagemagick raw
+
+# Matt Turner <mattst88@gentoo.org> (12 Jun 2011)
+# dev-python/mysql-python not keyworded
+dev-vcs/mercurial bugzilla
+
+# Matt Turner <mattst88@gentoo.org> (09 Feb 2012)
+# dev-vcs/git[cgi] requires app-text/highlight which requires boost
+dev-vcs/git cgi
+
+# Matt Turner <mattst88@gentoo.org> (09 Feb 2012)
+# mips only use flags
+>=sci-libs/fftw-3 -zbus
diff --git a/profiles/arch/mips/parent b/profiles/arch/mips/parent
new file mode 100644
index 000000000000..eb001c6e8ab8
--- /dev/null
+++ b/profiles/arch/mips/parent
@@ -0,0 +1 @@
+../base
diff --git a/profiles/arch/mips/use.force b/profiles/arch/mips/use.force
new file mode 100644
index 000000000000..17258810bc1a
--- /dev/null
+++ b/profiles/arch/mips/use.force
@@ -0,0 +1,6 @@
+# Copyright 2008-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# Force the flag which corresponds to ARCH.
+mips
diff --git a/profiles/arch/mips/use.mask b/profiles/arch/mips/use.mask
new file mode 100644
index 000000000000..dededc9dbcdc
--- /dev/null
+++ b/profiles/arch/mips/use.mask
@@ -0,0 +1,385 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# Unmask the flag which corresponds to ARCH.
+-mips
+
+# Anthony G. Basile <blueness@gentoo.org> (01 Aug 2015)
+# There is no luajit support on mips. Bug #554376.
+luajittex
+
+# Markos Chandras <hwoarang@gentoo.org>
+# app-arch/lz4 does not seem to build on MIPS
+# Original bug report: #501600
+lz4
+
+# Markos Chandras <hwoarang@gentoo.org>
+# Profiles are ISA agnostic so these
+# should be masked on per user basis
+# See #498082
+-mips32r2
+-mipsdspr1
+-mipsdspr2
+-mipsfpu
+
+# Markos Chandras <hwoarang@gentoo.org>
+# Needs packages that lack ~mips keywords
+# See #485366
+m17n-lib
+
+# Ryan Hill <dirtyepic@gentoo.org>
+# Needs sci-mathematics/glpk.
+lpsol
+
+# Kacper Kowalik <xarthisius@gentoo.org> (9 Aug 2010)
+# cblas-external as virtual/cblas is also masked
+cblas-external
+
+# Samuli Suominen <ssuominen@gentoo.org>
+# Media cannot be tested for MIPS at the moment.
+# media-libs/libmpeg3
+# media-libs/portaudio
+# dev-libs/libcdio
+# media-libs/musicbrainz
+# media-libs/openexr
+mpeg
+portaudio
+cdio
+cdda
+musicbrainz
+openexr
+
+# Ryan Hill <dirtyepic@gentoo.org>
+# Various Gnome flags
+beagle
+gtkhtml
+gnome
+
+# Peter Volkov <pva@gentoo.org> MPI was never tested on mips, but
+# some programs with this useflag are useful, e.g #227631
+mpi
+
+# Ryan Hill <dirtyepic@gentoo.org>
+# virtual/blas virtual/cblas and virtual/lapack not keyworded
+lapack
+blas
+
+# Ryan Hill <dirtyepic@gentoo.org>
+dell
+
+# Alexander Færøy <eroyf@gentoo.org>
+# ldap -- untested, masking for now.
+ldap
+
+# Alexander Færøy <eroyf@gentoo.org>
+# Clamav -- untested, masking for now.
+clamav
+
+# Untested on mips, masking for now.
+cdb
+nextaw
+
+# Until someone actually needs fuse, we'll mask it as
+# it holds up stablizing ntfsprogs
+fuse
+
+# 2006/03/07 - Donnie Berkholz <dberkholz@gentoo.org>
+# Modular X: mask for architectures lacking direct rendering
+dri
+
+# Stephen P. Becker <geoman@gentoo.org>
+-video_cards_newport
+-video_cards_impact
+
+# Stephen P. Becker <geoman@gentoo.org>
+# more modular X stuff
+video_cards_epson
+video_cards_tdfx
+video_cards_sunffb
+video_cards_mach64
+video_cards_mga
+video_cards_nouveau
+video_cards_nv
+video_cards_r128
+video_cards_radeon
+video_cards_sis
+input_devices_acecad
+input_devices_aiptek
+input_devices_calcomp
+input_devices_digitaledge
+input_devices_dmc
+input_devices_dynapro
+input_devices_elo2300
+input_devices_elographics
+input_devices_fpit
+input_devices_hyperpen
+input_devices_jamstudio
+input_devices_magellan
+input_devices_magictouch
+input_devices_microtouch
+input_devices_mutouch
+input_devices_palmax
+input_devices_penmount
+input_devices_spaceorb
+input_devices_summa
+input_devices_synaptics
+input_devices_tek4957
+input_devices_ur98
+input_devices_vmmouse
+input_devices_void
+input_devices_wacom
+input_devices_joystick
+video_cards_chips
+video_cards_cirrus
+video_cards_glint
+video_cards_nvidia
+video_cards_s3
+video_cards_s3virge
+video_cards_savage
+video_cards_sisusb
+video_cards_sunbw2
+video_cards_suncg14
+video_cards_suncg3
+video_cards_suncg6
+video_cards_sunleo
+video_cards_suntcx
+video_cards_trident
+video_cards_vmware
+video_cards_voodoo
+
+# Matt Turner <mattst88@gentoo.org>
+# Mask more VIDEO_CARDs added with mesa-8.0
+video_cards_r100
+video_cards_r200
+video_cards_r300
+video_cards_r600
+video_cards_radeonsi
+video_cards_i915
+video_cards_i965
+video_cards_ilo
+# vmware wasn't added with mesa-8.0, but it should still be masked
+video_cards_vmware
+
+# 2006/02/05 - Donnie Berkholz <dberkholz@gentoo.org>
+# Modular X: mask for architectures on which they aren't available
+video_cards_apm
+video_cards_ark
+video_cards_cyrix
+video_cards_i128
+video_cards_i740
+video_cards_imstt
+video_cards_intel
+video_cards_neomagic
+video_cards_nsc
+video_cards_rendition
+video_cards_tga
+video_cards_tseng
+video_cards_vesa
+video_cards_vga
+video_cards_ast
+
+# Diego Pettenò <flameeyes@gentoo.org>
+# Until xine-lib's keywording can be maintained, please leave it masked.
+xine
+
+# Stephen P. Becker <geoman@gentoo.org>
+# masking mono because it doesn't work on mips
+mono
+
+# Hardave Riar <hardave@gentoo.org>
+# Temporarily masking ieee1394 until it can be tested
+# Quick fix to my tree b0rkage
+ieee1394
+
+# Henrik Brix Andersen <brix@gentoo.org>
+# According to the mips herd, we currently have no way of testing
+# pcmcia on mips, bug #90359
+pcmcia
+
+# John N. Laliberte <allanonjl@gentoo.org>
+# mask scanner support
+scanner
+
+# Armando Di Cianno <fafhrd@gentoo.org>
+# gnustep is currently unbuildable on mips - masking this to repair windowmaker
+# broken mips keywording becuase of 'gnustep' USE flag
+gnustep
+
+# Hardave Riar <hardave@gentoo.org>
+# This should work, someone with a usb card and digital camera should test it
+gphoto2
+
+# Hardave Riar <hardave@gentoo.org>
+# This will probablly work, but no hardware to test with
+gnokii
+
+# Ciaran McCreesh <ciaranm@gentoo.org>
+# unresolved dep, bug #82428
+emboss
+
+# Joshua Kinard <kumba@gentoo.org>
+# dietlibc isn't known to work on mips
+diet
+
+# Stephen P. Becker <geoman@gentoo.org>
+# masked because it hoses xchat on 64-bit machines
+xosd
+
+# Stephen P. Becker <geoman@gentoo.org>
+# masked for now until this can be properly tested with alsa
+jack
+
+# Stephen P. Becker <geoman@gentoo.org>
+# masked because of silly java deps with gnome (we have no jre on mips)
+accessibility
+
+# Stephen P. Becker <geoman@gentoo.org>
+# masked because mozilla doesn't work on mips
+mozilla
+
+# Stephen P. Becker <geoman@gentoo.org>
+# masked because I say so, gnome--
+pda
+
+# Ciaran McCreesh <ciaranm@gentoo.org>
+# not even slightly reliable, bug #65216
+mzscheme
+
+# Stephen P. Becker <geoman@gentoo.org>
+# masked because gaim sucks
+evo
+
+# Paul de Vrieze <pauldv@gentoo.org>
+# There is no java in this profile (if there is it must be available). Without
+# this repoman will fail on apps like sys-libs/db
+java
+
+# Ciaran McCreesh <ciaranm@gentoo.org>
+# No java, no netbeans
+netbeans
+
+# masked until gnome-extra/evolution-data-server is keyworded for mips
+eds
+
+# Flags which aren't applicable to mips (Mostly copied from sparc)
+3dfx
+acpi
+afs
+apm
+directfb
+dvdr
+ibm
+ggi
+lirc
+trusted
+voodoo3
+smartcard
+
+#
+# Anthony G. Basile <blueness@gentoo.org> (18 Jul 2012)
+# php is an old mask which works now
+# pike is no longer a use flag
+#
+## see email to gentoo-dev with subject "use.mask and PHP5's crazy IUSE"
+## Dated Sat, 31 Jul 2004 14:49:28 -0700, from robbat2@gentoo.org
+## all of these are binary-only, and not presently available on this
+## architecture.
+#php
+#pike
+djbfft
+timidity
+
+# We don't use smartcards, afaik
+pcsc-lite
+
+# Diego Pettenò <flameeyes@gentoo.org> (6 Dec 2006)
+# Unmask specific MIPS ALSA drivers
+-alsa_cards_au1x00
+
+#Daniel Black <dragonheart@gentoo.org> (28 Feb 2007)
+# Use mask l7-filter for iptables dependency - bug #150343 until mips tested
+l7filter
+
+# Fernando J. Pereda <ferdy@gentoo.org> (20 Mar 2007)
+# New optional dependency of >=mail-client/mutt-1.5.14
+qdbm
+
+# Doug Goldstein <cardoe@gentoo.org> (08 May 2007)
+# no one in mips land has smartcard hardware to test with
+# see bug #162205 comment 10.
+smartcard
+openct
+
+# kumba (02 Jun 2007)
+# pulseaudio hasn't been tested on mips; maybe someday
+pulseaudio
+
+# kumba (01 Nov 2007)
+# mask ladspa USE
+# [22:30] <beandog> mips: plz to mask ladspa use flag
+ladspa
+
+# Matt Turner <mattst88@gentoo.org> (13 Dec 2010)
+# Dropping app-arch/rpm keywords, mask rpm USE accordingly
+rpm
+
+# Matt Turner <mattst88@gentoo.org> (13 Dec 2010)
+# We don't have net-libs/libsmi keyworded
+smi
+
+# Matt Turner <mattst88@gentoo.org> (13 Dec 2010)
+# We don't have sys-devel/llvm
+llvm
+
+# Matt Turner <mattst88@gentoo.org (14 Jun 2011)
+# pdfannotextractor needs java
+pdfannotextractor
+
+# Matt Turner <mattst88@gentoo.org) (11 Jul 2011)
+# xemacs dependencies not keyworded
+xemacs
+
+# Matt Turner <mattst88@gentoo.org) (11 Jul 2011)
+# no native mips/linux code generation, see bug 319649
+ocamlopt
+
+# Matt Turner <mattst88@gentoo.org) (10 Feb 2012)
+# mask d3d since we don't have wine
+d3d
+
+# Matt Turner <mattst88@gentoo.org) (10 Feb 2012)
+# mask wayland since dev-libs/wayland isn't keyworded
+wayland
+
+# Michael Sterrett <mr_bones_@gentoo.org) (24 Aug 2012)
+# media-sound/fluidsynth isn't keyworded
+fluidsynth
+
+# Mips USE flags
+-n32
+-n64
+-ip27
+-ip28
+-ip30
+-fixed-point
+-loongson2f
+
+# Samuli Suominen <ssuominen@gentoo.org> (18 Jan 2013)
+# libdlm and cman are not keyworded
+cman
+clvm
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (22 Aug 2013)
+# virtual/opencl is not keyworded
+opencl
+
+# Unmask once sys-libs/libunwind gets keyworded.
+unwind
+
+# sys-libs/libseccomp has not been ported to this arch yet #524148
+seccomp
+
+# Ben de Groot <yngwin@gentoo.org> (01 Feb 2015)
+# please remove when keyworded
+qt5