From: Chris Gianelloni Date: Thu, 7 Feb 2008 02:49:11 +0000 (+0000) Subject: Rearrange things in the arch/*.py files to ensure that nothing is used before it... X-Git-Tag: CATALYST_2_0_6_916~209 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=79a64d9171e436883f9de7d3a39942685303a94c;p=catalyst.git Rearrange things in the arch/*.py files to ensure that nothing is used before it has been defined. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1285 d1e1f19c-881f-0410-ab34-b69fee027534 --- diff --git a/ChangeLog b/ChangeLog index 7e90adb8..351fa853 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,11 @@ # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 # $Id: $ + 07 Feb 2008; Chris Gianelloni arch/amd64.py, + arch/mips.py: + Rearrange things in the arch/*.py files to ensure that nothing is used + before it has been defined. + 07 Feb 2008; Andrew Gaffney arch/powerpc.py: Reorder arch/powerpc.py to make python happy diff --git a/arch/amd64.py b/arch/amd64.py index a62b9751..5cfa2eae 100644 --- a/arch/amd64.py +++ b/arch/amd64.py @@ -28,5 +28,7 @@ class arch_amd64(generic_amd64): def register(): "Inform main catalyst program of the contents of this plugin." - return ({"amd64":arch_amd64}, ("x86_64", )) + return ({ + "amd64" : arch_amd64 + }, ("x86_64", )) diff --git a/arch/mips.py b/arch/mips.py index bca6351e..5239fae6 100644 --- a/arch/mips.py +++ b/arch/mips.py @@ -16,56 +16,6 @@ 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): @@ -162,22 +112,56 @@ class arch_mipsel4_n32(generic_mipsel): self.settings["CHOST"]="mips64el-unknown-linux-gnu" self.settings["HOSTUSE"]=["n32"] +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"] def register(): "Inform main catalyst program of the contents of this plugin."