summaryrefslogtreecommitdiff
path: root/profiles/arch/mips
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /profiles/arch/mips
reinit the tree, so we can have metadata
Diffstat (limited to 'profiles/arch/mips')
-rw-r--r--profiles/arch/mips/eapi1
-rw-r--r--profiles/arch/mips/make.defaults21
-rw-r--r--profiles/arch/mips/mips64/eapi1
-rw-r--r--profiles/arch/mips/mips64/make.defaults6
-rw-r--r--profiles/arch/mips/mips64/multilib/eapi1
-rw-r--r--profiles/arch/mips/mips64/multilib/make.defaults23
-rw-r--r--profiles/arch/mips/mips64/multilib/n32/eapi1
-rw-r--r--profiles/arch/mips/mips64/multilib/n32/make.defaults12
-rw-r--r--profiles/arch/mips/mips64/multilib/n32/parent1
-rw-r--r--profiles/arch/mips/mips64/multilib/n32/use.force4
-rw-r--r--profiles/arch/mips/mips64/multilib/n64/eapi1
-rw-r--r--profiles/arch/mips/mips64/multilib/n64/make.defaults12
-rw-r--r--profiles/arch/mips/mips64/multilib/n64/parent1
-rw-r--r--profiles/arch/mips/mips64/multilib/n64/use.force4
-rw-r--r--profiles/arch/mips/mips64/multilib/o32/eapi1
-rw-r--r--profiles/arch/mips/mips64/multilib/o32/make.defaults12
-rw-r--r--profiles/arch/mips/mips64/multilib/o32/parent1
-rw-r--r--profiles/arch/mips/mips64/multilib/o32/use.force4
-rw-r--r--profiles/arch/mips/mips64/multilib/parent2
-rw-r--r--profiles/arch/mips/mips64/multilib/use.force4
-rw-r--r--profiles/arch/mips/mips64/multilib/use.mask8
-rw-r--r--profiles/arch/mips/mips64/n32/eapi1
-rw-r--r--profiles/arch/mips/mips64/n32/make.defaults14
-rw-r--r--profiles/arch/mips/mips64/n32/parent1
-rw-r--r--profiles/arch/mips/mips64/n32/use.force4
-rw-r--r--profiles/arch/mips/mips64/n32/use.mask4
-rw-r--r--profiles/arch/mips/mips64/n64/eapi1
-rw-r--r--profiles/arch/mips/mips64/n64/make.defaults14
-rw-r--r--profiles/arch/mips/mips64/n64/parent1
-rw-r--r--profiles/arch/mips/mips64/n64/use.force4
-rw-r--r--profiles/arch/mips/mips64/n64/use.mask4
-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.defaults8
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/eapi1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/make.defaults23
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/n32/eapi1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/n32/make.defaults12
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/n32/parent1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/n32/use.force4
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/n64/eapi1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/n64/make.defaults12
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/n64/parent1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/n64/use.force4
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/o32/eapi1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/o32/make.defaults12
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/o32/parent1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/o32/use.force4
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/parent2
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/use.force4
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/use.mask8
-rw-r--r--profiles/arch/mips/mipsel/mips64el/n32/eapi1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/n32/make.defaults14
-rw-r--r--profiles/arch/mips/mipsel/mips64el/n32/parent1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/n32/use.force4
-rw-r--r--profiles/arch/mips/mipsel/mips64el/n32/use.mask4
-rw-r--r--profiles/arch/mips/mipsel/mips64el/n64/eapi1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/n64/make.defaults14
-rw-r--r--profiles/arch/mips/mipsel/mips64el/n64/parent1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/n64/use.force4
-rw-r--r--profiles/arch/mips/mipsel/mips64el/n64/use.mask4
-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.defaults14
-rw-r--r--profiles/arch/mips/mipsel/o32/parent1
-rw-r--r--profiles/arch/mips/mipsel/o32/use.force4
-rw-r--r--profiles/arch/mips/mipsel/o32/use.mask4
-rw-r--r--profiles/arch/mips/mipsel/parent1
-rw-r--r--profiles/arch/mips/mipsel/use.mask6
-rw-r--r--profiles/arch/mips/o32/eapi1
-rw-r--r--profiles/arch/mips/o32/make.defaults14
-rw-r--r--profiles/arch/mips/o32/parent1
-rw-r--r--profiles/arch/mips/o32/use.force4
-rw-r--r--profiles/arch/mips/o32/use.mask4
-rw-r--r--profiles/arch/mips/package.mask6
-rw-r--r--profiles/arch/mips/package.use.force11
-rw-r--r--profiles/arch/mips/package.use.mask177
-rw-r--r--profiles/arch/mips/parent1
-rw-r--r--profiles/arch/mips/use.force5
-rw-r--r--profiles/arch/mips/use.mask347
80 files changed, 922 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..7241d23bfa2b
--- /dev/null
+++ b/profiles/arch/mips/make.defaults
@@ -0,0 +1,21 @@
+# Copyright 2008-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# 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..aa6444d92e53
--- /dev/null
+++ b/profiles/arch/mips/mips64/make.defaults
@@ -0,0 +1,6 @@
+# Copyright 2010-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..83b190993308
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/make.defaults
@@ -0,0 +1,23 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..2b7c2e01f741
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/n32/make.defaults
@@ -0,0 +1,12 @@
+# Copyright 2011-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..556bba21926f
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/n32/use.force
@@ -0,0 +1,4 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..6c19a1b016cd
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/n64/make.defaults
@@ -0,0 +1,12 @@
+# Copyright 2011-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..bb51328d7c99
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/n64/use.force
@@ -0,0 +1,4 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..535f84f6e25e
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/o32/make.defaults
@@ -0,0 +1,12 @@
+# Copyright 2011-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..aac1b84a82dc
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/o32/use.force
@@ -0,0 +1,4 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..559b27408235
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/use.force
@@ -0,0 +1,4 @@
+# Copyright 2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..bcbae99c5464
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/use.mask
@@ -0,0 +1,8 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# 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..692c9dac6e55
--- /dev/null
+++ b/profiles/arch/mips/mips64/n32/make.defaults
@@ -0,0 +1,14 @@
+# Copyright 2011-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..c2533b67088d
--- /dev/null
+++ b/profiles/arch/mips/mips64/n32/use.force
@@ -0,0 +1,4 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..a3007f8ee8c9
--- /dev/null
+++ b/profiles/arch/mips/mips64/n32/use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+-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..d21ecb953cfc
--- /dev/null
+++ b/profiles/arch/mips/mips64/n64/make.defaults
@@ -0,0 +1,14 @@
+# Copyright 2011-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..ca1bea5c4016
--- /dev/null
+++ b/profiles/arch/mips/mips64/n64/use.force
@@ -0,0 +1,4 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..3d54e8b2760a
--- /dev/null
+++ b/profiles/arch/mips/mips64/n64/use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+-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..79c657845c29
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/make.defaults
@@ -0,0 +1,8 @@
+# Copyright 2010-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..0a2ecd62de06
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/make.defaults
@@ -0,0 +1,23 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..04e1ecd38846
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/n32/make.defaults
@@ -0,0 +1,12 @@
+# Copyright 2011-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..556bba21926f
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/n32/use.force
@@ -0,0 +1,4 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..0b8a5c45cf20
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/n64/make.defaults
@@ -0,0 +1,12 @@
+# Copyright 2011-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..bb51328d7c99
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/n64/use.force
@@ -0,0 +1,4 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..f338725f0d48
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/o32/make.defaults
@@ -0,0 +1,12 @@
+# Copyright 2011-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..aac1b84a82dc
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/o32/use.force
@@ -0,0 +1,4 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..559b27408235
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/use.force
@@ -0,0 +1,4 @@
+# Copyright 2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..bcbae99c5464
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/use.mask
@@ -0,0 +1,8 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# 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..0c623e27edeb
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/n32/make.defaults
@@ -0,0 +1,14 @@
+# Copyright 2010-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..c2533b67088d
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/n32/use.force
@@ -0,0 +1,4 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..a3007f8ee8c9
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/n32/use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+-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..50a4bfaaef8d
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/n64/make.defaults
@@ -0,0 +1,14 @@
+# Copyright 2010-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..ca1bea5c4016
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/n64/use.force
@@ -0,0 +1,4 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..3d54e8b2760a
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/n64/use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+-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..1e82f441cae4
--- /dev/null
+++ b/profiles/arch/mips/mipsel/o32/make.defaults
@@ -0,0 +1,14 @@
+# Copyright 2010-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..3ad34479a840
--- /dev/null
+++ b/profiles/arch/mips/mipsel/o32/use.force
@@ -0,0 +1,4 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..19a83980be88
--- /dev/null
+++ b/profiles/arch/mips/mipsel/o32/use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+-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/mipsel/use.mask b/profiles/arch/mips/mipsel/use.mask
new file mode 100644
index 000000000000..2a8cc7b0c76a
--- /dev/null
+++ b/profiles/arch/mips/mipsel/use.mask
@@ -0,0 +1,6 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# James Le Cuirot <chewi@gentoo.org> (29 Jun 2017)
+# Remask as this profile is little endian.
+big-endian
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..74a8db7216ff
--- /dev/null
+++ b/profiles/arch/mips/o32/make.defaults
@@ -0,0 +1,14 @@
+# Copyright 2010-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..3ad34479a840
--- /dev/null
+++ b/profiles/arch/mips/o32/use.force
@@ -0,0 +1,4 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..19a83980be88
--- /dev/null
+++ b/profiles/arch/mips/o32/use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+-abi_mips_o32
diff --git a/profiles/arch/mips/package.mask b/profiles/arch/mips/package.mask
new file mode 100644
index 000000000000..6b2c964b76b5
--- /dev/null
+++ b/profiles/arch/mips/package.mask
@@ -0,0 +1,6 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Mask pam_ldap and nss_ldap - openldap dep missing.
+sys-auth/pam_ldap
+sys-auth/nss_ldap
diff --git a/profiles/arch/mips/package.use.force b/profiles/arch/mips/package.use.force
new file mode 100644
index 000000000000..713307fcb402
--- /dev/null
+++ b/profiles/arch/mips/package.use.force
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Michał Górny <mgorny@gentoo.org> (24 Sep 2016)
+# Force the host target to avoid dependency hell
+sys-devel/clang llvm_targets_Mips
+sys-devel/llvm llvm_targets_Mips
+
+# Mike Frysinger <vapier@gentoo.org> (16 Mar 2015)
+# Needs dev-lang/luajit tested #499974
+dev-libs/efl oldlua
diff --git a/profiles/arch/mips/package.use.mask b/profiles/arch/mips/package.use.mask
new file mode 100644
index 000000000000..f4c0b3d09e4d
--- /dev/null
+++ b/profiles/arch/mips/package.use.mask
@@ -0,0 +1,177 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Michał Górny <mgorny@gentoo.org> (08 Aug 2017)
+# Required VIDEO_CARDS=i965/radeonsi, both masked in this profile.
+media-libs/mesa vulkan
+
+# Michał Górny <mgorny@gentoo.org> (08 Aug 2017)
+# Requires USE=opencl that is masked in this profile.
+net-misc/bfgminer adl lm_sensors
+
+# Michał Górny <mgorny@gentoo.org> (28 Jun 2017)
+# app-misc/dtach is not keyworded, and tests are restricted anyway, so
+# no point in pursuing it right now.
+app-shells/bash-completion test
+
+# Mart Raudsepp <leio@gentoo.org> (27 May 2017)
+# app-pda/libimobiledevice, app-pda/libplist and co not tested
+sys-power/upower ios
+sys-power/upower-pm-utils ios
+gnome-base/gvfs ios
+
+# Mart Raudsepp <leio@gentoo.org> (27 May 2017)
+# dev-libs/libgdata and net-libs/gnome-online-accounts not tested
+gnome-base/gvfs google
+
+# Jason Zaman <perfinion@gentoo.org> (09 May 2017)
+# x11-libs/libXpresent is not keyworded on mips
+xfce-base/xfwm4 xpresent
+
+# Brian Dolbec <dolsen@gentoo.org> (21 Mar 2017)
+# This is masked as mongo-db needed for bson use flag
+# which is not keyworded on many arches.
+app-portage/g-sorcery bson
+
+# Mart Raudsepp <leio@gentoo.org> (07 Feb 2017)
+# dev-python/gmpy fails tests about sizeof (conch), bug 608496
+# dev-python/attrs fails tests on slow mips, couldn't test service_identity test path (crypt), bug 608570
+# dev-python/gmpy also a test depend, so minimize the features until can test properly (http2 soap test)
+dev-python/twisted conch crypt http2 soap test
+
+# Felix Janda <felix.janda@posteo.de> (24 Sep 2016)
+# net-libs/libnetfilter_conntrack is not keyworded on mips
+net-dns/dnsmasq conntrack
+
+# Thomas Deutschmann <whissi@gentoo.org> (23 Aug 2016)
+# net-libs/openpgm is not keyworded on mips
+net-libs/zeromq pgm
+
+# Mike Frysinger <vapier@gentoo.org> 21 Feb 2016
+# Needs arch love for elementary. #575322
+media-libs/elementary javascript
+
+# Mike Frysinger <vapier@gentoo.org> (17 Dec 2015)
+# The tlsdate seccomp logic is open-coded and doesn't support this arch yet.
+net-misc/tlsdate seccomp
+
+# Davide Pesavento <pesa@gentoo.org> (26 Oct 2015)
+# Tests require non-keyworded qt5
+dev-qt/qtchooser test
+
+# Mike Frysinger <vapier@gentoo.org> (10 Sep 2015)
+# Requires matplotlib which requires a bit more.
+dev-python/numpydoc test
+
+# 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
+
+# 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 mediawiki-experimental
+
+# 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 tga xinerama zoran
+
+# 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
+
+# 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
+
+# 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..82c0a4788533
--- /dev/null
+++ b/profiles/arch/mips/use.force
@@ -0,0 +1,5 @@
+# Copyright 2008-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# 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..6caff81617cb
--- /dev/null
+++ b/profiles/arch/mips/use.mask
@@ -0,0 +1,347 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Unmask the flag which corresponds to ARCH.
+-mips
+
+# James Le Cuirot <chewi@gentoo.org> (29 Jun 2017)
+# Unmask as this profile is big endian.
+-big-endian
+
+# Mart Raudsepp <leio@gentoo.org> (27 May 2017)
+# media-libs/libmtp not tested
+mtp
+
+# Mart Raudsepp <leio@gentoo.org> (27 May 2017)
+# net-libs/gnome-online-accounts not tested
+gnome-online-accounts
+
+# Mart Raudsepp <leio@gentoo.org> (27 May 2017)
+# Keywords lost on net-fs/samba over time, use.mask until re-keyworded
+samba
+
+# Mart Raudsepp <leio@gentoo.org> (07 Feb 2017)
+# dev-libs/libappindicator not tested
+ayatana
+
+# 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
+-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
+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
+
+# 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
+
+# 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
+
+# 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_dynapro
+input_devices_elo2300
+input_devices_elographics
+input_devices_fpit
+input_devices_hyperpen
+input_devices_mutouch
+input_devices_penmount
+input_devices_synaptics
+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_amdgpu
+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_i128
+video_cards_i740
+video_cards_intel
+video_cards_neomagic
+video_cards_nsc
+video_cards_rendition
+video_cards_tga
+video_cards_tseng
+video_cards_vesa
+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
+
+# Hardave Riar <hardave@gentoo.org>
+# This should work, someone with a usb card and digital camera should test it
+gphoto2
+
+# 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
+
+# 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
+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
+
+# 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
+
+# Michael Sterrett <mr_bones_@gentoo.org> (24 Aug 2012)
+# media-sound/fluidsynth isn't keyworded
+fluidsynth
+
+# Mips USE flags
+-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
+
+# Ben de Groot <yngwin@gentoo.org> (01 Feb 2015)
+# please remove when keyworded
+qt5