add ppc64 profile
authorBrad House <brad_mssw@gentoo.org>
Sat, 10 Jan 2004 17:27:54 +0000 (17:27 +0000)
committerBrad House <brad_mssw@gentoo.org>
Sat, 10 Jan 2004 17:27:54 +0000 (17:27 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@124 d1e1f19c-881f-0410-ab34-b69fee027534

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

diff --git a/arch/ppc64.py b/arch/ppc64.py
new file mode 100644 (file)
index 0000000..2da1668
--- /dev/null
@@ -0,0 +1,23 @@
+# Distributed under the GNU General Public License version 2
+# Copyright 2003-2004 Gentoo Technologies, Inc.
+
+import builder
+
+class generic_ppc64(builder.generic):
+       "abstract base class for all ppc64 builders"
+       def __init__(self,myspec):
+               builder.generic.__init__(self,myspec)
+               self.settings["mainarch"]="ppc64"
+               self.settings["CHROOT"]="chroot"
+
+class arch_ppc64(generic_ppc64):
+       "builder class for generic ppc64 (G5/Power4/Power4+)"
+       def __init__(self,myspec):
+               generic_ppc64.__init__(self,myspec)
+               self.settings["CFLAGS"]="-O2"
+               self.settings["CHOST"]="powerpc64-unknown-linux-gnu"
+
+def register(foo):
+       "Inform main catalyst program of the contents of this plugin."
+       foo.update({"ppc64":arch_ppc64})
+