add amd64.py
authorBrad House <brad_mssw@gentoo.org>
Thu, 6 Nov 2003 04:51:04 +0000 (04:51 +0000)
committerBrad House <brad_mssw@gentoo.org>
Thu, 6 Nov 2003 04:51:04 +0000 (04:51 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@63 d1e1f19c-881f-0410-ab34-b69fee027534

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

diff --git a/arch/amd64.py b/arch/amd64.py
new file mode 100644 (file)
index 0000000..13982a0
--- /dev/null
@@ -0,0 +1,28 @@
+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_amd64(builder.generic):
+       "abstract base class for all amd64 builders"
+       def __init__(self,myspec):
+               builder.generic.__init__(self,myspec)
+               self.settings["mainarch"]="amd64"
+               self.settings["CHROOT"]="chroot"
+
+class arch_amd64(generic_amd64):
+       "builder class for generic amd64 (athlon64/opteron)"
+       def __init__(self,myspec):
+               generic_amd64.__init__(self,myspec)
+               self.settings["CFLAGS"]="-O2"
+               self.settings["CHOST"]="x86_64-pc-linux-gnu"
+
+def register(foo):
+       "Inform main catalyst program of the contents of this plugin."
+       foo.update({"amd64":arch_amd64})
+