adding in arm and hppa
authorJohn P. Davis <zhen@gentoo.org>
Tue, 11 May 2004 20:03:04 +0000 (20:03 +0000)
committerJohn P. Davis <zhen@gentoo.org>
Tue, 11 May 2004 20:03:04 +0000 (20:03 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@365 d1e1f19c-881f-0410-ab34-b69fee027534

arch/arm.py [new file with mode: 0644]
arch/hppa.py

diff --git a/arch/arm.py b/arch/arm.py
new file mode 100644 (file)
index 0000000..e190372
--- /dev/null
@@ -0,0 +1,34 @@
+# 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
+       })
index 74353a16563a2211c307caf3191c9346b7ff0019..de4d30bbbb8366fd26e0bcd98dc787104a5d84ad 100644 (file)
@@ -4,16 +4,40 @@
 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
+       })