--- /dev/null
+import builder
+
+# This module defines the various "builder" classes for the various x86
+# sub-arches. For example, we have a class to handle building of Pentium 4
+# sub-arches, one for i686, etc. We also have a function called register
+# that's called from the main catalyst program, which the main catalyst
+# program uses to become informed of the various sub-arches supported by
+# this module, as well as which classes should be used to build each
+# particular sub-architecture.
+
+class generic_ppc(builder.generic):
+ "abstract base class for all ppc builders"
+ def __init__(self,myspec):
+ builder.generic.__init__(self,myspec)
+ self.settings["mainarch"]="ppc"
+ self.settings["CHROOT"]="chroot"
+ self.settings["CHOST"]="powerpc-unknown-linux-gnu"
+
+
+class arch_power_ppc(generic_ppc):
+ "builder class for generic powerpc/power"
+ def __init__(self,myspec):
+ generic_ppc.__init__(self,myspec)
+ self.settings["CFLAGS"]="-O3 -mcpu=common"
+
+class arch_ppc(generic_ppc):
+ "builder class for generic powerpc"
+ def __init__(self,myspec):
+ generic_ppc.__init__(self,myspec)
+ self.settings["CFLAGS"]="-O3 -mcpu=powerpc"
+
+class arch_g3(generic_ppc):
+ def __init__(self,myspec):
+ generic_ppc.__init__(self,myspec)
+ self.settings["CFLAGS"]="-O3 -mcpu=750"
+
+class arch_g4(generic_ppc):
+ def __init__(self,myspec):
+ generic_ppc.__init__(self,myspec)
+ self.settings["CFLAGS"]="-O2 -cpu=7400 -maltivec -mabi=altivec"
+ self.settings["HOSTUSE"]=["altivec"]
+
+#class arch_g5(generic_ppc):
+# "builder class for ppc970 32bit mode"
+# def __init__(self,myspec):
+# generic_ppc.__init__(self,myspec)
+# self.settings["CFLAGS"]="-O2 -cpu=970 -maltivec -mabi=altivec"
+# self.settings["HOSTUSE"]=["altivec"]
+
+
+def register(foo):
+ "Inform main catalyst program of the contents of this plugin."
+ foo.update({"ppc":arch_ppc,"power/ppc":arch_power_ppc,"g3":arch_g3,"g4":arch_g4})
+