--- /dev/null
+# Distributed under the GNU General Public License version 2
+# Copyright 2003-2004 Gentoo Technologies, Inc.
+
+import builder,os
+from catalyst_support import *
+
+class generic_arm(builder.generic):
+ "Abstract base class for all arm builders"
+ def __init__(self,myspec):
+ builder.generic.__init__(self,myspec)
+ self.settings["mainarch"]="arm"
+ self.settings["CHROOT"]="chroot"
+ self.settings["CFLAGS"]="-O2 -pipe"
+ self.settings["CXXFLAGS"]="-O1 -pipe"
+
+class arch_arm(generic_arm):
+ "Builder class for arm target"
+ def __init__(self,myspec):
+ generic_arm.__init__(self,myspec)
+ self.settings["CHOST"]="arm-unknown-linux-gnu"
+
+class arch_armv4l(generic_arm):
+ "Builder class for armv4l (StrongArm-110) target"
+ def __init__(self,myspec):
+ generic_arm.__init__(self,myspec)
+ self.settings["CFLAGS"]+=" -march=strongarm110"
+ self.settings["CHOST"]="armv4l-unknown-linux-gnu"
+
+def register(foo):
+ "Inform main catalyst program of the contents of this plugin."
+ foo.update({
+ "arm" : arch_arm,
+ "armv4l" : arch_armv4l
+ })
import builder,os
from catalyst_support import *
-class arch_hppa(builder.generic):
- "builder class for hppa"
+class generic_hppa(builder.generic):
+ "Abstract base class for all hppa builders"
def __init__(self,myspec):
builder.generic.__init__(self,myspec)
self.settings["mainarch"]="hppa"
self.settings["CHROOT"]="chroot"
self.settings["CFLAGS"]="-O2 -pipe"
self.settings["CXXFLAGS"]="-O1 -pipe"
+
+class arch_hppa(generic_hppa):
+ "Builder class for hppa systems"
+ def __init__(self,myspec):
+ generic_hppa.__init__(self,myspec)
+ self.settings["CFLAGS"]+=" -march=1.0"
self.settings["CHOST"]="hppa-unknown-linux-gnu"
+class arch_hppa1_1(generic_hppa):
+ "Builder class for hppa 1.1 systems"
+ def __init__(self,myspec):
+ generic_hppa.__init__(self,myspec)
+ self.settings["CFLAGS"]+=" -march=1.1"
+ self.settings["CHOST"]="hppa1.1-unknown-linux-gnu"
+
+class arch_hppa2_0(generic_hppa):
+ "Builder class for hppa 2.0 systems"
+ def __init__(self,myspec):
+ generic_hppa.__init__(self,myspec)
+ self.settings["CFLAGS"]+=" -march=2.0"
+ self.settings["CHOST"]="hppa2.0-unknown-linux-gnu"
+
def register(foo):
"Inform main catalyst program of the contents of this plugin."
- foo.update({ "hppa":arch_hppa })
+ foo.update({
+ "hppa": arch_hppa,
+ "hppa1.1": arch_hppa1_1,
+ "hppa2.0": arch_hppa2_0
+ })