--- /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/generic-be/n32/make.defaults,v 1.1 2007/02/09 22:55:14 eroyf Exp $
+
+# IP22/IP32 N32 Generic Profile
+# Also Catalyst Build Profile for N32
+
+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 a *minimum* of mips3, because IP22/IP32 are, at minimum, mips3 capable
+# systems (IP22 R4x00 systems are mips3; IP32 is mips4). Enforce n32 as the default
+# ABI as well.
+CFLAGS="-O2 -pipe -march=mips3 -mabi=n32"
+CXXFLAGS=${CFLAGS}
+
+ACCEPT_KEYWORDS="mips"
+
+USE="readline fortran gpm berkdb gdbm tcpd pam libwww ssl nls perl python sdl mips n32"
+STAGE1_USE="mips 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/generic-be/n32/nptl/make.defaults,v 1.1 2007/02/09 22:55:14 eroyf Exp $
+
+# IP22/IP32 N32/NPTL Generic Profile
+# Also Catalyst Build Profile for N32/NPTL
+
+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 a *minimum* of mips3, because IP22/IP32 are, at minimum, mips3 capable
+# systems (IP22 R4x00 systems are mips3; IP32 is mips4). Enforce n32 as the default
+# ABI as well.
+CFLAGS="-O2 -pipe -march=mips3 -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"
+STAGE1_USE="mips n32 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/generic-be/n32/nptl/package.mask,v 1.1 2007/02/09 22:55:14 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/generic-be/n32/nptl/use.mask,v 1.1 2007/02/09 22:55:14 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/generic-be/n32/use.mask,v 1.1 2007/02/09 22:55:14 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/generic-be/o32/make.defaults,v 1.1 2007/02/09 22:55:14 eroyf Exp $
+
+# IP22/IP32 O32 Generic Profile
+# Also Catalyst Build Profile for O32
+
+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 a *minimum* of mips3, because IP22/IP32 are, at minimum, mips3 capable
+# systems (IP22 R4x00 systems are mips3; IP32 is mips4). Enforce o32 as the default
+# ABI as well.
+CFLAGS="-O2 -pipe -march=mips3 -mabi=32"
+CXXFLAGS=${CFLAGS}
+
+ACCEPT_KEYWORDS="mips"
+
+USE="readline fortran gpm berkdb gdbm tcpd pam libwww ssl nls perl python sdl mips"
+STAGE1_USE="mips"
--- /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/generic-be/o32/nptl/make.defaults,v 1.1 2007/02/09 22:55:14 eroyf Exp $
+
+# IP22/IP32 O32/NPTL Generic Profile
+# Also Catalyst Build Profile for O32/NPTL
+
+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 a *minimum* of mips3, because IP22/IP32 are, at minimum, mips3 capable
+# systems (IP22 R4x00 systems are mips3; IP32 is mips4). Enforce o32 as the default
+# ABI as well.
+CFLAGS="-O2 -pipe -march=mips3 -mabi=32"
+CXXFLAGS=${CFLAGS}
+
+ACCEPT_KEYWORDS="mips"
+
+USE="readline fortran gpm berkdb gdbm tcpd pam libwww ssl nls perl python sdl mips nptl nptlonly"
+STAGE1_USE="mips 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/generic-be/o32/nptl/package.mask,v 1.1 2007/02/09 22:55:14 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/generic-be/o32/nptl/use.mask,v 1.1 2007/02/09 22:55:14 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/generic-be/o32/packages,v 1.1 2007/02/09 22:55:14 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/generic-be/packages,v 1.1 2007/02/09 22:55:14 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/generic-be/virtuals,v 1.1 2007/02/09 22:55:14 eroyf Exp $
+
+virtual/bootloader 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/package.mask,v 1.1 2007/02/09 22:55:14 eroyf Exp $
+
+# Unmask gcc-4.x and >=mips-sources-2.6.17
+->=sys-devel/gcc-4.0
+->=sys-kernel/mips-sources-2.6.17