diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2008-02-07 01:27:51 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2008-02-07 01:27:51 +0000 |
commit | 0786c51f20155888067b89bf28b4d7af501abdfc (patch) | |
tree | a9ab9d2e1c9a0c6fb7e72b6b1b0546ca75c5cfce /arch | |
parent | Changed the code for copying the MOTD files so it's fewer lines and makes mor... (diff) | |
download | catalyst-0786c51f20155888067b89bf28b4d7af501abdfc.tar.gz catalyst-0786c51f20155888067b89bf28b4d7af501abdfc.tar.bz2 catalyst-0786c51f20155888067b89bf28b4d7af501abdfc.zip |
Added several subarches for mips so we can dump the mips subarch profiles from my shiny new multi-parent profile structure. This is 2.0.6_pre1 for testing.
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1282 d1e1f19c-881f-0410-ab34-b69fee027534
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips.py | 140 |
1 files changed, 119 insertions, 21 deletions
diff --git a/arch/mips.py b/arch/mips.py index d2bb80bf..bca6351e 100644 --- a/arch/mips.py +++ b/arch/mips.py @@ -16,6 +16,56 @@ class generic_mipsel(builder.generic): self.settings["CHROOT"]="chroot" self.settings["CHOST"]="mipsel-unknown-linux-gnu" +class arch_cobalt(generic_mipsel): + "Builder class for all cobalt [Little-endian]" + def __init__(self,myspec): + generic_mipsel.__init__(self,myspec) + self.settings["CFLAGS"]="-O2 -march=r5000 -mabi=32 -pipe" + self.settings["CHOST"]="mipsel-unknown-linux-gnu" + self.settings["HOSTUSE"]=["cobalt"] + +class arch_cobalt_n32(generic_mipsel): + "Builder class for all cobalt [Little-endian N32]" + def __init__(self,myspec): + arch_cobalt.__init__(self,myspec) + self.settings["CFLAGS"]="-O2 -march=r5000 -mabi=n32 -pipe" + self.settings["HOSTUSE"]=["cobalt","n32"] + +class arch_ip27(generic_mipsel): + "Builder class for all IP27 [Big-endian]" + def __init__(self,myspec): + arch_mips4.__init__(self,myspec) + self.settings["HOSTUSE"]=["ip27"] + +class arch_ip27_n32(generic_mipsel): + "Builder class for all IP27 [Big-endian N32]" + def __init__(self,myspec): + arch_mips4_n32.__init__(self,myspec) + self.settings["HOSTUSE"]=["ip27","n32"] + +class arch_ip28(generic_mipsel): + "Builder class for all IP28 [Big-endian]" + def __init__(self,myspec): + arch_mips4.__init__(self,myspec) + self.settings["HOSTUSE"]=["ip28"] + +class arch_ip28_n32(generic_mipsel): + "Builder class for all IP28 [Big-endian N32]" + def __init__(self,myspec): + arch_mips4_n32.__init__(self,myspec) + self.settings["HOSTUSE"]=["ip28","n32"] + +class arch_ip30(generic_mipsel): + "Builder class for all IP30 [Big-endian]" + def __init__(self,myspec): + arch_mips4.__init__(self,myspec) + self.settings["HOSTUSE"]=["ip30"] + +class arch_ip30_n32(generic_mipsel): + "Builder class for all IP30 [Big-endian N32]" + def __init__(self,myspec): + arch_mips4_n32.__init__(self,myspec) + self.settings["HOSTUSE"]=["ip30","n32"] class arch_mips1(generic_mips): "Builder class for MIPS I [Big-endian]" def __init__(self,myspec): @@ -34,18 +84,43 @@ class arch_mips3(generic_mips): generic_mips.__init__(self,myspec) self.settings["CFLAGS"]="-O2 -mips3 -mabi=32 -pipe" +class arch_mips3_n32(generic_mips): + "Builder class for MIPS III [Big-endian N32]" + def __init__(self,myspec): + generic_mips.__init__(self,myspec) + self.settings["CFLAGS"]="-O2 -mips3 -mabi=n32 -pipe" + self.settings["CHOST"]="mips64-unknown-linux-gnu" + self.settings["HOSTUSE"]=["n32"] + +class arch_mips3_n64(generic_mips): + "Builder class for MIPS III [Big-endian N64]" + def __init__(self,myspec): + generic_mips.__init__(self,myspec) + self.settings["CFLAGS"]="-O2 -mips3 -mabi=64 -pipe" + self.settings["CHOST"]="mips64-unknown-linux-gnu" + self.settings["HOSTUSE"]=["n64"] + class arch_mips4(generic_mips): "Builder class for MIPS IV [Big-endian]" def __init__(self,myspec): generic_mips.__init__(self,myspec) self.settings["CFLAGS"]="-O2 -mips4 -mabi=32 -pipe" -class arch_mips4n32(generic_mips): +class arch_mips4_n32(generic_mips): "Builder class for MIPS IV [Big-endian N32]" def __init__(self,myspec): generic_mips.__init__(self,myspec) self.settings["CFLAGS"]="-O2 -mips4 -mabi=n32 -pipe" self.settings["CHOST"]="mips64-unknown-linux-gnu" + self.settings["HOSTUSE"]=["n32"] + +class arch_mips4_n64(generic_mips): + "Builder class for MIPS IV [Big-endian N64]" + def __init__(self,myspec): + generic_mips.__init__(self,myspec) + self.settings["CFLAGS"]="-O2 -mips4 -mabi=64 -pipe" + self.settings["CHOST"]="mips64-unknown-linux-gnu" + self.settings["HOSTUSE"]=["n64"] class arch_mipsel1(generic_mipsel): "Builder class for all MIPS I [Little-endian]" @@ -65,12 +140,13 @@ class arch_mipsel3(generic_mipsel): generic_mipsel.__init__(self,myspec) self.settings["CFLAGS"]="-O2 -mips3 -mabi=32 -pipe" -class arch_mipsel3n32(generic_mipsel): +class arch_mipsel3_n32(generic_mipsel): "Builder class for all MIPS III [Little-endian N32]" def __init__(self,myspec): generic_mipsel.__init__(self,myspec) self.settings["CFLAGS"]="-O2 -mips3 -mabi=n32 -pipe" self.settings["CHOST"]="mips64el-unknown-linux-gnu" + self.settings["HOSTUSE"]=["n32"] class arch_mipsel4(generic_mipsel): "Builder class for all MIPS IV [Little-endian]" @@ -78,34 +154,56 @@ class arch_mipsel4(generic_mipsel): generic_mipsel.__init__(self,myspec) self.settings["CFLAGS"]="-O2 -mips4 -mabi=32 -pipe" -class arch_mipsel4n32(generic_mipsel): +class arch_mipsel4_n32(generic_mipsel): "Builder class for all MIPS IV [Little-endian N32]" def __init__(self,myspec): generic_mipsel.__init__(self,myspec) self.settings["CFLAGS"]="-O2 -mips4 -mabi=n32 -pipe" self.settings["CHOST"]="mips64el-unknown-linux-gnu" + self.settings["HOSTUSE"]=["n32"] + + + + + + + + + + + + + + + def register(): "Inform main catalyst program of the contents of this plugin." return ({ - "mips" :arch_mips1, - "mips1" :arch_mips1, - "mips2" :arch_mips2, - "mips3" :arch_mips3, - "mips4" :arch_mips4, - "mips4n32" :arch_mips4n32, - "mipsel" :arch_mipsel1, - "mipsel1" :arch_mipsel1, - "mipsel2" :arch_mipsel2, - "mipsel3" :arch_mipsel3, - "mipsel3n32" :arch_mipsel3n32, - "mipsel4" :arch_mipsel4, - "mipsel4n32" :arch_mipsel4n32, - "sgir4k" :arch_mips3, - "sgir5k" :arch_mips4, - "sgir10kplus" :arch_mips4, - "loongson" :arch_mipsel3, - "cobalt" :arch_mipsel4 + "cobalt" : arch_cobalt, + "cobalt_n32" : arch_cobalt_n32, + "ip27" : arch_ip27, + "ip27_n32" : arch_ip27_n32, + "ip28" : arch_ip28, + "ip28_n32" : arch_ip28_n32, + "ip30" : arch_ip30, + "ip30_n32" : arch_ip30_n32, + "mips" : arch_mips1, + "mips1" : arch_mips1, + "mips2" : arch_mips2, + "mips3" : arch_mips3, + "mips3_n32" : arch_mips3_n32, + "mips3_n64" : arch_mips3_n64, + "mips4" : arch_mips4, + "mips4_n32" : arch_mips4_n32, + "mipsel" : arch_mipsel1, + "mipsel1" : arch_mipsel1, + "mipsel2" : arch_mipsel2, + "mipsel3" : arch_mipsel3, + "mipsel3_n32" : arch_mipsel3_n32, + "mipsel4" : arch_mipsel4, + "mipsel4_n32" : arch_mipsel4_n32, + "loongson" : arch_mipsel3, }, ("mips","mips64")) |