From 0702072ec10ea73556587370ecae57e4b285598b Mon Sep 17 00:00:00 2001 From: Brad House Date: Thu, 6 Nov 2003 04:51:04 +0000 Subject: [PATCH] add amd64.py git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@63 d1e1f19c-881f-0410-ab34-b69fee027534 --- arch/amd64.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 arch/amd64.py diff --git a/arch/amd64.py b/arch/amd64.py new file mode 100644 index 00000000..13982a07 --- /dev/null +++ b/arch/amd64.py @@ -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}) + -- 2.26.2