Added arch plugins for sparc and sparc64.
authorJason Wever <weeve@gentoo.org>
Sat, 29 Nov 2003 20:01:08 +0000 (20:01 +0000)
committerJason Wever <weeve@gentoo.org>
Sat, 29 Nov 2003 20:01:08 +0000 (20:01 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@92 d1e1f19c-881f-0410-ab34-b69fee027534

arch/sparc.py [new file with mode: 0644]
arch/sparc64.py [new file with mode: 0644]

diff --git a/arch/sparc.py b/arch/sparc.py
new file mode 100644 (file)
index 0000000..a401f74
--- /dev/null
@@ -0,0 +1,23 @@
+# Distributed under the GNU General Public License version 2
+# Copyright 2003-2004 Gentoo Technologies, Inc.
+
+import builder,os
+from catalyst_support import *
+
+class generic_sparc(builder.generic):
+       "abstract base class for all sparc builders"
+       def __init__(self,myspec):
+               builder.generic.__init__(self,myspec)
+               self.settings["mainarch"]="sparc"
+               self.settings["CHROOT"]="chroot"
+
+class arch_sparc(generic_sparc):
+       "builder class for generic sparc (sun4cdm)"
+       def __init__(self,myspec):
+               generic_sparc.__init__(self,myspec)
+               self.settings["CFLAGS"]=" -O2"
+               self.settings["CHOST"]="sparc-unknown-linux-gnu"
+
+def register(foo):
+       "Inform main catalyst program of the contents of this plugin."
+       foo.update({"sparc":arch_sparc})
diff --git a/arch/sparc64.py b/arch/sparc64.py
new file mode 100644 (file)
index 0000000..3cc7245
--- /dev/null
@@ -0,0 +1,23 @@
+# Distributed under the GNU General Public License version 2
+# Copyright 2003-2004 Gentoo Technologies, Inc.
+
+import builder,os
+from catalyst_support import *
+
+class generic_sparc64(builder.generic):
+       "abstract base class for all sparc64 builders"
+       def __init__(self,myspec):
+               builder.generic.__init__(self,myspec)
+               self.settings["mainarch"]="sparc64"
+               self.settings["CHROOT"]="chroot"
+
+class arch_sparc64(generic_sparc64):
+       "builder class for generic sparc64 (sun4u)"
+       def __init__(self,myspec):
+               generic_sparc64.__init__(self,myspec)
+               self.settings["CFLAGS"]=" -O3 -mcpu=ultrasparc"
+               self.settings["CHOST"]="sparc-unknown-linux-gnu"
+
+def register(foo):
+       "Inform main catalyst program of the contents of this plugin."
+       foo.update({"sparc64":arch_sparc64})