--- /dev/null
+# Copyright 2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/profiles/default-linux/mips/2007.0/ip27/n32/make.defaults,v 1.1 2007/02/11 11:36:55 eroyf Exp $
+
+# IP27 N32 Profile
+
+ARCH="mips"
+PROFILE_ARCH="mips64"
+
+# The n32 userland needs a 64bit compiler and CHOST
+CHOST="mips64-unknown-linux-gnu"
+
+# Sandbox is broken on mips (Bug #45814)
+FEATURES="-sandbox ccache autoconfig"
+
+# Compiler flags
+# We build as mips4, because IP27 supports at minimum, a mips4
+# processor. Enforce n32 as the default ABI as well.
+CFLAGS="-O2 -pipe -march=mips4 -mabi=n32"
+CXXFLAGS=${CFLAGS}
+
+ACCEPT_KEYWORDS="mips"
+
+USE="readline fortran gpm berkdb gdbm tcpd pam libwww ssl nls perl python sdl mips n32 ip27"
--- /dev/null
+# Copyright 2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/profiles/default-linux/mips/2007.0/ip27/n32/nptl/make.defaults,v 1.1 2007/02/11 11:36:55 eroyf Exp $
+
+# IP27 N32/NPTL Profile
+
+ARCH="mips"
+PROFILE_ARCH="mips64"
+
+# The n32 userland needs a 64bit compiler and CHOST
+CHOST="mips64-unknown-linux-gnu"
+
+# Sandbox is broken on mips (Bug #45814)
+FEATURES="-sandbox ccache autoconfig"
+
+# Compiler flags
+# We build as mips4, because IP27 supports at minimum, a mips4
+# processor. Enforce n32 as the default ABI as well.
+CFLAGS="-O2 -pipe -march=mips4 -mabi=n32"
+CXXFLAGS=${CFLAGS}
+
+ACCEPT_KEYWORDS="mips"
+
+USE="readline fortran gpm berkdb gdbm tcpd pam libwww ssl nls perl python sdl mips n32 nptl nptlonly ip27"
--- /dev/null
+# Copyright 2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/profiles/default-linux/mips/2007.0/ip27/n32/nptl/package.mask,v 1.1 2007/02/11 11:36:55 eroyf Exp $
+
+# Unmask glibc-2.4
+->=sys-libs/glibc-2.4
--- /dev/null
+# Copyright 2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/profiles/default-linux/mips/2007.0/ip27/n32/nptl/use.mask,v 1.1 2007/02/11 11:36:55 eroyf Exp $
+
+# Unmask nptl
+-nptl
+-nptlonly
+
--- /dev/null
+# Copyright 2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/profiles/default-linux/mips/2007.0/ip27/n32/use.mask,v 1.1 2007/02/11 11:36:55 eroyf Exp $
+
+# Unmask n32
+-n32
--- /dev/null
+# Copyright 2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/profiles/default-linux/mips/2007.0/ip27/o32/make.defaults,v 1.1 2007/02/11 11:36:55 eroyf Exp $
+
+# IP27 O32 Profile
+
+ARCH="mips"
+PROFILE_ARCH="mips64"
+
+# Even though this is a 64bit kernel, we use a 32-bit userland (o32)
+CHOST="mips-unknown-linux-gnu"
+
+# Sandbox is broken on mips (Bug #45814)
+FEATURES="-sandbox ccache autoconfig"
+
+# Compiler flags
+# We build as mips4, because IP27 supports at minimum, a mips4
+# processor. Enforce o32 as the default ABI as well.
+CFLAGS="-O2 -pipe -march=mips4 -mabi=32"
+CXXFLAGS=${CFLAGS}
+
+ACCEPT_KEYWORDS="mips"
+
+USE="readline fortran gpm berkdb gdbm tcpd pam libwww ssl nls perl python sdl mips ip27"
--- /dev/null
+# Copyright 2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/profiles/default-linux/mips/2007.0/ip27/o32/nptl/make.defaults,v 1.1 2007/02/11 11:36:55 eroyf Exp $
+
+# IP27 O32/NPTL Profile
+
+ARCH="mips"
+PROFILE_ARCH="mips64"
+
+# Even though this is a 64bit kernel, we use a 32-bit userland (o32)
+CHOST="mips-unknown-linux-gnu"
+
+# Sandbox is broken on mips (Bug #45814)
+FEATURES="-sandbox ccache autoconfig"
+
+# Compiler flags
+# We build as mips4, because IP27 supports at minimum, a mips4
+# processor. Enforce o32 as the default ABI as well.
+CFLAGS="-O2 -pipe -march=mips4 -mabi=32"
+CXXFLAGS=${CFLAGS}
+
+ACCEPT_KEYWORDS="mips"
+
+USE="readline fortran gpm berkdb gdbm tcpd pam libwww ssl nls perl python sdl mips nptl nptlonly ip27"
--- /dev/null
+# Copyright 2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/profiles/default-linux/mips/2007.0/ip27/o32/nptl/package.mask,v 1.1 2007/02/11 11:36:55 eroyf Exp $
+
+# Unmask glibc-2.4
+->=sys-libs/glibc-2.4
--- /dev/null
+# Copyright 2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/profiles/default-linux/mips/2007.0/ip27/o32/nptl/use.mask,v 1.1 2007/02/11 11:36:55 eroyf Exp $
+
+# Unmask nptl
+-nptl
+-nptlonly
+
--- /dev/null
+# Copyright 2006 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/profiles/default-linux/mips/2007.0/ip27/o32/packages,v 1.1 2007/02/11 11:36:55 eroyf Exp $
+
+# o32-specific packages
+
+# Since we're running a mips64 kernel w/ 32bit (o32) userland,
+# we need kgcc64 to build kernels.
+*sys-devel/kgcc64
--- /dev/null
+# Copyright 2006 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/profiles/default-linux/mips/2007.0/ip27/packages,v 1.1 2007/02/11 11:36:55 eroyf Exp $
+
+# Sometimes necessary to trick programs into thinking we're really
+# a mips32 system.
+*sys-apps/setarch
+
+# The default SGI Bootloader is ArcLoad
+*sys-boot/arcload
--- /dev/null
+# Copyright 2006 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/profiles/default-linux/mips/2007.0/ip27/virtuals,v 1.1 2007/02/11 11:36:55 eroyf Exp $
+
+virtual/bootloader sys-boot/arcload