From 5805dbef8a6d8691c7390fb38368bc1811c98b06 Mon Sep 17 00:00:00 2001 From: "John P. Davis" Date: Tue, 11 May 2004 20:03:04 +0000 Subject: [PATCH] adding in arm and hppa git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@365 d1e1f19c-881f-0410-ab34-b69fee027534 --- arch/arm.py | 34 ++++++++++++++++++++++++++++++++++ arch/hppa.py | 30 +++++++++++++++++++++++++++--- 2 files changed, 61 insertions(+), 3 deletions(-) create mode 100644 arch/arm.py diff --git a/arch/arm.py b/arch/arm.py new file mode 100644 index 00000000..e190372d --- /dev/null +++ b/arch/arm.py @@ -0,0 +1,34 @@ +# Distributed under the GNU General Public License version 2 +# Copyright 2003-2004 Gentoo Technologies, Inc. + +import builder,os +from catalyst_support import * + +class generic_arm(builder.generic): + "Abstract base class for all arm builders" + def __init__(self,myspec): + builder.generic.__init__(self,myspec) + self.settings["mainarch"]="arm" + self.settings["CHROOT"]="chroot" + self.settings["CFLAGS"]="-O2 -pipe" + self.settings["CXXFLAGS"]="-O1 -pipe" + +class arch_arm(generic_arm): + "Builder class for arm target" + def __init__(self,myspec): + generic_arm.__init__(self,myspec) + self.settings["CHOST"]="arm-unknown-linux-gnu" + +class arch_armv4l(generic_arm): + "Builder class for armv4l (StrongArm-110) target" + def __init__(self,myspec): + generic_arm.__init__(self,myspec) + self.settings["CFLAGS"]+=" -march=strongarm110" + self.settings["CHOST"]="armv4l-unknown-linux-gnu" + +def register(foo): + "Inform main catalyst program of the contents of this plugin." + foo.update({ + "arm" : arch_arm, + "armv4l" : arch_armv4l + }) diff --git a/arch/hppa.py b/arch/hppa.py index 74353a16..de4d30bb 100644 --- a/arch/hppa.py +++ b/arch/hppa.py @@ -4,16 +4,40 @@ import builder,os from catalyst_support import * -class arch_hppa(builder.generic): - "builder class for hppa" +class generic_hppa(builder.generic): + "Abstract base class for all hppa builders" def __init__(self,myspec): builder.generic.__init__(self,myspec) self.settings["mainarch"]="hppa" self.settings["CHROOT"]="chroot" self.settings["CFLAGS"]="-O2 -pipe" self.settings["CXXFLAGS"]="-O1 -pipe" + +class arch_hppa(generic_hppa): + "Builder class for hppa systems" + def __init__(self,myspec): + generic_hppa.__init__(self,myspec) + self.settings["CFLAGS"]+=" -march=1.0" self.settings["CHOST"]="hppa-unknown-linux-gnu" +class arch_hppa1_1(generic_hppa): + "Builder class for hppa 1.1 systems" + def __init__(self,myspec): + generic_hppa.__init__(self,myspec) + self.settings["CFLAGS"]+=" -march=1.1" + self.settings["CHOST"]="hppa1.1-unknown-linux-gnu" + +class arch_hppa2_0(generic_hppa): + "Builder class for hppa 2.0 systems" + def __init__(self,myspec): + generic_hppa.__init__(self,myspec) + self.settings["CFLAGS"]+=" -march=2.0" + self.settings["CHOST"]="hppa2.0-unknown-linux-gnu" + def register(foo): "Inform main catalyst program of the contents of this plugin." - foo.update({ "hppa":arch_hppa }) + foo.update({ + "hppa": arch_hppa, + "hppa1.1": arch_hppa1_1, + "hppa2.0": arch_hppa2_0 + }) -- 2.26.2