From 2796624a8677d2f15cc35484aa486a055c0d074e Mon Sep 17 00:00:00 2001 From: Brian Jackson Date: Wed, 24 Mar 2004 17:25:16 +0000 Subject: [PATCH] s390 support git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@319 d1e1f19c-881f-0410-ab34-b69fee027534 --- arch/s390.py | 23 +++++++++++++++++++++++ examples/sparc/s390-stage1-20040305.spec | 7 +++++++ examples/sparc/s390-stage2-20040305.spec | 8 ++++++++ examples/sparc/s390-stage3-20040305.spec | 8 ++++++++ modules/targets.py | 4 +++- 5 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 arch/s390.py create mode 100644 examples/sparc/s390-stage1-20040305.spec create mode 100644 examples/sparc/s390-stage2-20040305.spec create mode 100644 examples/sparc/s390-stage3-20040305.spec diff --git a/arch/s390.py b/arch/s390.py new file mode 100644 index 00000000..6920a57a --- /dev/null +++ b/arch/s390.py @@ -0,0 +1,23 @@ +# Distributed under the GNU General Public License version 2 +# Copyright 2003-2004 Gentoo Technologies, Inc. + +import builder,os +from catalyst_support import * + +class generic_s390(builder.generic): + "abstract base class for all s390 builders" + def __init__(self,myspec): + builder.generic.__init__(self,myspec) + self.settings["mainarch"]="s390" + self.settings["CHROOT"]="chroot" + +class arch_s390(generic_s390): + "builder class for generic s390" + def __init__(self,myspec): + generic_s390.__init__(self,myspec) + self.settings["CFLAGS"]="-O2" + self.settings["CHOST"]="s390-ibm-linux-gnu" + +def register(foo): + "Inform main catalyst program of the contents of this plugin." + foo.update({"s390":arch_s390}) diff --git a/examples/sparc/s390-stage1-20040305.spec b/examples/sparc/s390-stage1-20040305.spec new file mode 100644 index 00000000..88b58d41 --- /dev/null +++ b/examples/sparc/s390-stage1-20040305.spec @@ -0,0 +1,7 @@ +subarch: sparc +version_stamp: 20040111 +target: stage1 +rel_type: default +rel_version: 1.4 +snapshot: 20040111 +source_subpath: default-sparc-1.4/stage2-sparc-20040105 diff --git a/examples/sparc/s390-stage2-20040305.spec b/examples/sparc/s390-stage2-20040305.spec new file mode 100644 index 00000000..5e100b33 --- /dev/null +++ b/examples/sparc/s390-stage2-20040305.spec @@ -0,0 +1,8 @@ +subarch: sparc +version_stamp: 20040111 +target: stage2 +rel_type: default +rel_version: 1.4 +snapshot: 20040111 +source_subpath: default-sparc-1.4/stage1-sparc-20040111 + diff --git a/examples/sparc/s390-stage3-20040305.spec b/examples/sparc/s390-stage3-20040305.spec new file mode 100644 index 00000000..0752dfbd --- /dev/null +++ b/examples/sparc/s390-stage3-20040305.spec @@ -0,0 +1,8 @@ +subarch: sparc +version_stamp: 20040111 +target: stage3 +rel_type: default +rel_version: 1.4 +snapshot: 20040111 +source_subpath: default-sparc-1.4/stage2-sparc-20040111 + diff --git a/modules/targets.py b/modules/targets.py index cbddffa5..316c1f99 100644 --- a/modules/targets.py +++ b/modules/targets.py @@ -1,6 +1,6 @@ # Distributed under the GNU General Public License version 2 # Copyright 2003-2004 Gentoo Technologies, Inc. -# $Header: /var/cvsroot/gentoo/src/catalyst/modules/Attic/targets.py,v 1.93 2004/03/23 07:20:34 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/modules/Attic/targets.py,v 1.94 2004/03/24 17:24:47 iggy Exp $ import os,string,imp,types,shutil from catalyst_support import * @@ -30,6 +30,7 @@ class generic_stage_target(generic_target): "ia64" : ["ia64"], "alpha" : ["alpha"], "sparc" : ["sparc"], + "s390" : ["s390"], "ppc" : ["ppc"], "ppc64" : ["ppc64"], "hppa" : ["hppa"], @@ -45,6 +46,7 @@ class generic_stage_target(generic_target): "ia64" : "ia64", "alpha" : "alpha", "sparc" : "sparc", + "s390" : "s390", "ppc" : "ppc", "ppc64" : "ppc64", "parisc" : "hppa", -- 2.26.2