From 26e9a24284884352a56f1d2296337c1d3eac449d Mon Sep 17 00:00:00 2001 From: Aron Griffis Date: Thu, 13 Nov 2003 01:22:31 +0000 Subject: [PATCH] add alpha plugin git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@83 d1e1f19c-881f-0410-ab34-b69fee027534 --- arch/alpha.py | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 arch/alpha.py diff --git a/arch/alpha.py b/arch/alpha.py new file mode 100644 index 00000000..07db7792 --- /dev/null +++ b/arch/alpha.py @@ -0,0 +1,77 @@ +# Distributed under the GNU General Public License version 2 +# Copyright 2003-2004 Gentoo Technologies, Inc. + +import builder,os +from catalyst_support import * + +class generic_alpha(builder.generic): + "abstract base class for all alpha builders" + def __init__(self,myspec): + builder.generic.__init__(self,myspec) + self.settings["mainarch"]="alpha" + self.settings["CHROOT"]="chroot" + self.settings["CFLAGS"]="-mieee" + +class arch_alpha(generic_alpha): + "builder class for generic alpha (ev4+)" + def __init__(self,myspec): + generic_alpha.__init__(self,myspec) + self.settings["CFLAGS"]+=" -O2 -mcpu=ev4" + self.settings["CHOST"]="alpha-unknown-linux-gnu" + +class arch_ev4(generic_alpha): + "builder class for alpha ev4" + def __init__(self,myspec): + generic_alpha.__init__(self,myspec) + self.settings["CFLAGS"]+=" -O2 -mcpu=ev4" + self.settings["CHOST"]="alphaev4-unknown-linux-gnu" + +class arch_ev45(generic_alpha): + "builder class for alpha ev45" + def __init__(self,myspec): + generic_alpha.__init__(self,myspec) + self.settings["CFLAGS"]+=" -O2 -mcpu=ev45" + self.settings["CHOST"]="alphaev45-unknown-linux-gnu" + +class arch_ev5(generic_alpha): + "builder class for alpha ev5" + def __init__(self,myspec): + generic_alpha.__init__(self,myspec) + self.settings["CFLAGS"]+=" -O2 -mcpu=ev5" + self.settings["CHOST"]="alphaev5-unknown-linux-gnu" + +class arch_ev56(generic_alpha): + "builder class for alpha ev56 (ev5 plus BWX)" + def __init__(self,myspec): + generic_alpha.__init__(self,myspec) + self.settings["CFLAGS"]+=" -O2 -mcpu=ev56" + self.settings["CHOST"]="alphaev56-unknown-linux-gnu" + +class arch_pca56(generic_alpha): + "builder class for alpha pca56 (ev5 plus BWX & MAX)" + def __init__(self,myspec): + generic_alpha.__init__(self,myspec) + self.settings["CFLAGS"]+=" -O2 -mcpu=pca56" + self.settings["CHOST"]="alphaev56-unknown-linux-gnu" + +class arch_ev6(generic_alpha): + "builder class for alpha ev6" + def __init__(self,myspec): + generic_alpha.__init__(self,myspec) + self.settings["CFLAGS"]+=" -O2 -mcpu=ev6" + self.settings["CHOST"]="alphaev6-unknown-linux-gnu" + self.settings["HOSTUSE"]=["ev6"] + +class arch_ev67(generic_alpha): + "builder class for alpha ev67 (ev6 plus CIX)" + def __init__(self,myspec): + generic_alpha.__init__(self,myspec) + self.settings["CFLAGS"]+=" -O2 -mcpu=ev67" + self.settings["CHOST"]="alphaev67-unknown-linux-gnu" + self.settings["HOSTUSE"]=["ev6"] + +def register(foo): + "Inform main catalyst program of the contents of this plugin." + foo.update({ "alpha":arch_alpha, "ev4":arch_ev4, "ev45":arch_ev45, + "ev5":arch_ev5, "ev56":arch_ev56, "pca56":arch_pca56, + "ev6":arch_ev6, "ev67":arch_ev67 }) -- 2.26.2