aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRaúl Porcel <armin76@gentoo.org>2010-11-01 12:23:37 +0000
committerRaúl Porcel <armin76@gentoo.org>2010-11-01 12:23:37 +0000
commitf1e9637c663ceb1ff4c958963fd398a1e6c907e6 (patch)
treef011c3e80ca0936d70f520c72ba9603adb6ea06f /arch
parentThis is catalyst 2.0.6.911 (diff)
downloadcatalyst-f1e9637c663ceb1ff4c958963fd398a1e6c907e6.tar.gz
catalyst-f1e9637c663ceb1ff4c958963fd398a1e6c907e6.tar.bz2
catalyst-f1e9637c663ceb1ff4c958963fd398a1e6c907e6.zip
Add patch for Loongson support, patch by Zhang Le <r0bertz at gentoo dot org>, bug #330241
Diffstat (limited to 'arch')
-rw-r--r--arch/mips.py33
1 files changed, 32 insertions, 1 deletions
diff --git a/arch/mips.py b/arch/mips.py
index f39a9924..260f1722 100644
--- a/arch/mips.py
+++ b/arch/mips.py
@@ -98,6 +98,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):
@@ -189,5 +217,8 @@ def register():
"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,
}, ("mips","mips64"))