mips.py: add multilib (and missing n64) classes
authorMatt Turner <mattst88@gentoo.org>
Sat, 25 Jun 2011 16:24:21 +0000 (12:24 -0400)
committerMatt Turner <mattst88@gmail.com>
Sat, 25 Jun 2011 16:24:21 +0000 (12:24 -0400)
ChangeLog
arch/mips.py

index 66da2a43336d1beaa1f61b10ba707070ed7941d9..70681df6f8fcc336b26a5a8153379d705bb0b323 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,9 @@
 # Distributed under the GPL v2
 # $Id$
 
+  25 Jun 2011; Matt Turner <mattst88@gentoo.org>
+  modules/catalyst/arch/mips.py: add multilib (and missing n64) classes
+
   25 Jun 2011; Matt Turner <mattst88@gentoo.org>
   modules/catalyst/arch/mips.py: remove n32/n64 USE flags
 
index ea61675e9b972ce06023ef1231e0214ef4eeacba..a83dd17b043c683940d4b9cf93770f4812c7214a 100644 (file)
@@ -30,6 +30,12 @@ class generic_mips64el(builder.generic):
                self.settings["CHROOT"]="chroot"
                self.settings["CHOST"]="mips64el-unknown-linux-gnu"
 
+class generic_multilib(builder.generic):
+       "Abstract base class for MIPS multilib"
+       def __init__(self,myspec):
+               builder.generic.__init__(self,myspec)
+               self.settings["HOSTUSE"]=["multilib"]
+
 class arch_mips1(generic_mips):
        "Builder class for MIPS I [Big-endian]"
        def __init__(self,myspec):
@@ -54,6 +60,13 @@ class arch_mips3_n64(generic_mips64):
                generic_mips64.__init__(self,myspec)
                self.settings["CFLAGS"]="-O2 -mips3 -mabi=64 -pipe"
 
+class arch_mips3_multilib(generic_mips64,generic_multilib):
+       "Builder class for MIPS III [Big-endian multilib]"
+       def __init__(self,myspec):
+               generic_mips64.__init__(self,myspec)
+               generic_multilib.__init__(self,myspec)
+               self.settings["CFLAGS"]="-O2 -mips3 -pipe"
+
 class arch_mips4(generic_mips64):
        "Builder class for MIPS IV [Big-endian]"
        def __init__(self,myspec):
@@ -72,6 +85,13 @@ class arch_mips4_n64(generic_mips64):
                generic_mips64.__init__(self,myspec)
                self.settings["CFLAGS"]="-O2 -mips4 -mabi=64 -pipe"
 
+class arch_mips4_multilib(generic_mips64,generic_multilib):
+       "Builder class for MIPS IV [Big-endian multilib]"
+       def __init__(self,myspec):
+               generic_mips64.__init__(self,myspec)
+               generic_multilib.__init__(self,myspec)
+               self.settings["CFLAGS"]="-O2 -mips4 -pipe"
+
 class arch_mipsel1(generic_mipsel):
        "Builder class for all MIPS I [Little-endian]"
        def __init__(self,myspec):
@@ -90,6 +110,19 @@ class arch_mipsel3_n32(generic_mips64el):
                generic_mips64el.__init__(self,myspec)
                self.settings["CFLAGS"]="-O2 -mips3 -mabi=n32 -pipe"
 
+class arch_mipsel3_n64(generic_mips64el):
+       "Builder class for MIPS III [Little-endian N64]"
+       def __init__(self,myspec):
+               generic_mips64el.__init__(self,myspec)
+               self.settings["CFLAGS"]="-O2 -mips3 -mabi=64 -pipe"
+
+class arch_mipsel3_multilib(generic_mips64el,generic_multilib):
+       "Builder class for MIPS III [Little-endian multilib]"
+       def __init__(self,myspec):
+               generic_mips64el.__init__(self,myspec)
+               generic_multilib.__init__(self,myspec)
+               self.settings["CFLAGS"]="-O2 -mips3 -pipe"
+
 class arch_loongson2e(generic_mipsel):
        "Builder class for all Loongson 2E [Little-endian]"
        def __init__(self,myspec):
@@ -126,6 +159,19 @@ class arch_mipsel4_n32(generic_mips64el):
                generic_mips64el.__init__(self,myspec)
                self.settings["CFLAGS"]="-O2 -mips4 -mabi=n32 -pipe"
 
+class arch_mipsel4_n64(generic_mips64el):
+       "Builder class for MIPS IV [Little-endian N64]"
+       def __init__(self,myspec):
+               generic_mips64el.__init__(self,myspec)
+               self.settings["CFLAGS"]="-O2 -mips4 -mabi=64 -pipe"
+
+class arch_mipsel4_multilib(generic_mips64el,generic_multilib):
+       "Builder class for MIPS IV [Little-endian multilib]"
+       def __init__(self,myspec):
+               generic_mips64el.__init__(self,myspec)
+               generic_multilib.__init__(self,myspec)
+               self.settings["CFLAGS"]="-O2 -mips4 -pipe"
+
 class arch_cobalt(generic_mipsel):
        "Builder class for all cobalt [Little-endian]"
        def __init__(self,myspec):
@@ -150,14 +196,21 @@ def register():
                        "mips3"                 : arch_mips3,
                        "mips3_n32"             : arch_mips3_n32,
                        "mips3_n64"             : arch_mips3_n64,
+                       "mips3_multilib": arch_mips3_multilib,
                        "mips4"                 : arch_mips4,
                        "mips4_n32"             : arch_mips4_n32,
+                       "mips4_n64"             : arch_mips4_n64,
+                       "mips4_multilib": arch_mips4_multilib,
                        "mipsel"                : arch_mipsel1,
                        "mipsel1"               : arch_mipsel1,
                        "mipsel3"               : arch_mipsel3,
                        "mipsel3_n32"   : arch_mipsel3_n32,
+                       "mipsel3_n64"   : arch_mipsel3_n64,
+                       "mipsel3_multilib"      : arch_mipsel3_multilib,
                        "mipsel4"               : arch_mipsel4,
                        "mipsel4_n32"   : arch_mipsel4_n32,
+                       "mipsel4_n64"   : arch_mipsel4_n64,
+                       "mipsel4_multilib"      : arch_mipsel4_multilib,
                        "loongson2e"            : arch_loongson2e,
                        "loongson2e_n32"        : arch_loongson2e_n32,
                        "loongson2f"            : arch_loongson2f,