From 71f1821ccfab22e1aa8d5959b0d33dbb21d8f9b0 Mon Sep 17 00:00:00 2001 From: Guy Martin Date: Tue, 16 Dec 2003 14:40:59 +0000 Subject: [PATCH] Added hppa specific code. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@104 d1e1f19c-881f-0410-ab34-b69fee027534 --- ChangeLog | 7 +++++-- arch/hppa.py | 18 ++++++++++++++++++ modules/targets.py | 8 +++++--- 3 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 arch/hppa.py diff --git a/ChangeLog b/ChangeLog index cd405d3b..614ebcc0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,10 @@ # ChangeLog for gentoo/src/catalyst # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.13 2003/11/30 01:51:44 drobbins Exp $ - +# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.14 2003/12/16 14:40:59 gmsoft Exp $ + + 16 Dec 2003; Guy Martin : arch/hppa.py,modules/targets.py : + Added hppa specific code. + 29 Nov 2003; Daniel Robbins : Tinderbox target added. See tinderbox examples in examples/ dir. diff --git a/arch/hppa.py b/arch/hppa.py new file mode 100644 index 00000000..8039876a --- /dev/null +++ b/arch/hppa.py @@ -0,0 +1,18 @@ +# Distributed under the GNU General Public License version 2 +# Copyright 2003-2004 Gentoo Technologies, Inc. + +import builder,os +from catalyst_support import * + +class arch_hppa(builder.generic): + "builder class for hppa" + def __init__(self,myspec): + builder.generic.__init__(self,myspec) + self.settings["mainarch"]="hppa" + self.settings["CHROOT"]="chroot" + self.settings["CFLAGS"]="-O2" + self.settings["CHOST"]="hppa-unknown-linux-gnu" + +def register(foo): + "Inform main catalyst program of the contents of this plugin." + foo.update({ "hppa":arch_hppa }) diff --git a/modules/targets.py b/modules/targets.py index e84275f8..ab6e30f8 100644 --- a/modules/targets.py +++ b/modules/targets.py @@ -28,7 +28,8 @@ class generic_stage_target(generic_target): "ia64" : ["ia64"], "alpha" : ["alpha"], "sparc" : ["sparc"], - "ppc" : ["ppc"] + "ppc" : ["ppc"], + "hppa" : ["hppa"] } machinemap={ "i386" : "x86", @@ -40,7 +41,9 @@ class generic_stage_target(generic_target): "ia64" : "ia64", "alpha" : "alpha", "sparc" : "sparc", - "ppc" : "ppc" + "ppc" : "ppc", + "parisc" : "hppa", + "parisc64" : "hppa" } mymachine=os.uname()[4] @@ -80,7 +83,6 @@ class generic_stage_target(generic_target): os.makedirs(self.settings["target_path"]) else: self.settings["target_path"]=st+"/builds/"+self.settings["target_subpath"]+".tar.bz2" - self.settings["source_path"]=st+"/builds/"+self.settings["source_subpath"]+".tar.bz2" self.settings["chroot_path"]=st+"/tmp/"+self.settings["target_subpath"] -- 2.26.2