From 73eb26b2e72783f3b9ae8ee4033d1e4997048ca4 Mon Sep 17 00:00:00 2001 From: Chris Gianelloni Date: Wed, 10 May 2006 13:23:00 +0000 Subject: [PATCH] Added 970, power3, power4, and power5 sub-arches for ppc64. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1132 d1e1f19c-881f-0410-ab34-b69fee027534 --- ChangeLog | 5 ++++- arch/ppc64.py | 36 +++++++++++++++++++++++++++++++++--- 2 files changed, 37 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 521faea3..d78cf372 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.616 2006/05/09 12:20:07 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.617 2006/05/10 13:23:00 wolf31o2 Exp $ + + 10 May 2006; Chris Gianelloni arch/ppc64.py: + Added 970, power3, power4, and power5 sub-arches for ppc64. 09 May 2006; Chris Gianelloni targets/support/livecdfs-update.sh: diff --git a/arch/ppc64.py b/arch/ppc64.py index 562ec21a..6b5007cb 100644 --- a/arch/ppc64.py +++ b/arch/ppc64.py @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo/src/catalyst/arch/ppc64.py,v 1.4 2006/01/03 14:55:11 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/arch/ppc64.py,v 1.5 2006/05/10 13:23:00 wolf31o2 Exp $ import builder @@ -12,13 +12,43 @@ class generic_ppc64(builder.generic): self.settings["CHROOT"]="chroot" class arch_ppc64(generic_ppc64): - "builder class for generic ppc64 (G5/Power4/Power4+)" + "builder class for generic ppc64 (G5/Power4/Power5)" def __init__(self,myspec): generic_ppc64.__init__(self,myspec) self.settings["CFLAGS"]="-O2 -pipe" + self.settings["CXXFLAGS"]="-O2 -pipe" self.settings["CHOST"]="powerpc64-unknown-linux-gnu" +class arch_970(generic_ppc64): + "builder class for G5 under ppc64" + def __init__(self,myspec): + generic_ppc64.__init__(self,myspec) + self.settings["CFLAGS"]="-O2 -pipe -mcpu=970 -mtune=970 -mabi=altivec" + self.settings["CXXFLAGS"]="-O2 -pipe -mcpu=970 -mtune=970 -mabi=altivec" + self.settings["HOSTUSE"]=["altivec"] + +class arch_power3(generic_ppc64): + "builder class for power3 under ppc64" + def __init__(self,myspec): + generic_ppc64.__init__(self,myspec) + self.settings["CFLAGS"]="-O2 -pipe -mcpu=power3 -mtune=power3" + self.settings["CXXFLAGS"]="-O2 -pipe -mcpu=power3 -mtune=power3" + +class arch_power4(generic_ppc64): + "builder class for power4 under ppc64" + def __init__(self,myspec): + generic_ppc64.__init__(self,myspec) + self.settings["CFLAGS"]="-O2 -pipe -mcpu=power4 -mtune=power4" + self.settings["CXXFLAGS"]="-O2 -pipe -mcpu=power4 -mtune=power4" + +class arch_power5(generic_ppc64): + "builder class for power5 under ppc64" + def __init__(self,myspec): + generic_ppc64.__init__(self,myspec) + self.settings["CFLAGS"]="-O2 -pipe -mcpu=power5 -mtune=power5" + self.settings["CXXFLAGS"]="-O2 -pipe -mcpu=power5 -mtune=power5" + def register(foo): "Inform main catalyst program of the contents of this plugin." - foo.update({"ppc64":arch_ppc64}) + foo.update({"ppc64":arch_ppc64,"970":arch_970,"power3":arch_power3,"power4":arch_power4,"power5":arch_power5}) -- 2.26.2