Add patch for Loongson support, patch by Zhang Le <r0bertz at gentoo dot org>, bug...
authorRaúl Porcel <armin76@gentoo.org>
Mon, 1 Nov 2010 12:24:52 +0000 (12:24 +0000)
committerRaúl Porcel <armin76@gentoo.org>
Mon, 1 Nov 2010 12:24:52 +0000 (12:24 +0000)
ChangeLog
modules/catalyst/arch/mips.py

index 1645d8e226f250077797df4fb91199f1e75fed94..e6facb208dbfb5d94921218b3ce65496b731a5fd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,11 @@
 # Distributed under the GPL v2
 # $Id$
 
+  01 Nov 2010; Raúl Porcel <armin76@gentoo.org>
+  modules/catalyst/arch/mips.py:
+  Add patch for Loongson support, patch by Zhang Le <r0bertz at gentoo dot
+  org>, bug #330241
+
   26 Sep 2010; Raúl Porcel <armin76@gentoo.org>
   modules/catalyst/arch/arm.py:
   ARM fixes
index 7234b65afc91f64232eafae8a91d53c301af648d..8e5f1246516d289d8b303c4561ef25b070c3b977 100644 (file)
@@ -97,6 +97,34 @@ class arch_mipsel3_n32(generic_mipsel):
                self.settings["CHOST"]="mips64el-unknown-linux-gnu"
                self.settings["HOSTUSE"]=["n32"]
 
+class arch_loongson2e(generic_mipsel):
+       "Builder class for all Loongson 2E [Little-endian]"
+       def __init__(self,myspec):
+               generic_mipsel.__init__(self,myspec)
+               self.settings["CFLAGS"]="-O2 -march=loongson2e -mabi=32 -pipe -mplt"
+
+class arch_loongson2e_n32(generic_mipsel):
+       "Builder class for all Loongson 2E [Little-endian N32]"
+       def __init__(self,myspec):
+               generic_mipsel.__init__(self,myspec)
+               self.settings["CFLAGS"]="-O2 -march=loongson2e -mabi=n32 -pipe -mplt"
+               self.settings["CHOST"]="mips64el-unknown-linux-gnu"
+               self.settings["HOSTUSE"]=["n32"]
+
+class arch_loongson2f(generic_mipsel):
+       "Builder class for all Loongson 2F [Little-endian]"
+       def __init__(self,myspec):
+               generic_mipsel.__init__(self,myspec)
+               self.settings["CFLAGS"]="-O3 -march=loongson2f -mabi=32 -pipe -mplt --Wa,-mfix-loongson2f-nop"
+
+class arch_loongson2f_n32(generic_mipsel):
+       "Builder class for all Loongson 2F [Little-endian N32]"
+       def __init__(self,myspec):
+               generic_mipsel.__init__(self,myspec)
+               self.settings["CFLAGS"]="-O3 -march=loongson2f -mabi=n32 -pipe -mplt -Wa,-mfix-loongson2f-nop"
+               self.settings["CHOST"]="mips64el-unknown-linux-gnu"
+               self.settings["HOSTUSE"]=["n32"]
+
 class arch_mipsel4(generic_mipsel):
        "Builder class for all MIPS IV [Little-endian]"
        def __init__(self,myspec):
@@ -186,7 +214,10 @@ _subarch_map = {
        "mipsel3_n32"   : arch_mipsel3_n32,
        "mipsel4"               : arch_mipsel4,
        "mipsel4_n32"   : arch_mipsel4_n32,
-       "loongson"              : arch_mipsel3,
+       "loongson2e"            : arch_loongson2e,
+       "loongson2e_n32"        : arch_loongson2e_n32,
+       "loongson2f"            : arch_loongson2f,
+       "loongson2f_n32"        : arch_loongson2f_n32,
 }
 
 _machine_map = ("mips","mips64")