# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.328 2005/09/08 20:59:07 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.329 2005/09/12 15:31:56 wolf31o2 Exp $
+
+ 12 Sep 2005; Chris Gianelloni <wolf31o2@gentoo.org> AUTHORS, +arch/sh.py,
+ modules/generic_stage_target.py:
+ Added sh architecture to supported architectures. Thanks to Matsuu Takuto
+ <matsuu@gentoo.org> for the patch. Closing bug #105693.
08 Sep 2005; Chris Gianelloni <wolf31o2@gentoo.org>
targets/livecd-stage1/livecd-stage1-controller.sh,
--- /dev/null
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo/src/catalyst/arch/sh.py,v 1.1 2005/09/12 15:31:57 wolf31o2 Exp $
+
+import builder,os
+from catalyst_support import *
+
+class generic_sh(builder.generic):
+ "Abstract base class for all sh builders [Little-endian]"
+ def __init__(self,myspec):
+ builder.generic.__init__(self,myspec)
+ self.settings["mainarch"]="sh"
+ self.settings["CHROOT"]="chroot"
+
+class generic_sheb(builder.generic):
+ "Abstract base class for all sheb builders [Big-endian]"
+ def __init__(self,myspec):
+ builder.generic.__init__(self,myspec)
+ self.settings["mainarch"]="sh"
+ self.settings["CHROOT"]="chroot"
+
+class arch_sh3(generic_sh):
+ "Builder class for SH-3 [Little-endian]"
+ def __init__(self,myspec):
+ generic_sh.__init__(self,myspec)
+ self.settings["CFLAGS"]="-O2 -m3"
+ self.settings["CHOST"]="sh3-unknown-linux-gnu"
+
+class arch_sh4(generic_sh):
+ "Builder class for SH-4 [Little-endian]"
+ def __init__(self,myspec):
+ generic_sh.__init__(self,myspec)
+ self.settings["CFLAGS"]="-O2 -m4"
+ self.settings["CHOST"]="sh4-unknown-linux-gnu"
+
+class arch_sh3eb(generic_sheb):
+ "Builder class for SH-3 [Big-endian]"
+ def __init__(self,myspec):
+ generic_sheb.__init__(self,myspec)
+ self.settings["CFLAGS"]="-O2 -m3 -mb"
+ self.settings["CHOST"]="sh3eb-unknown-linux-gnu"
+
+class arch_sh4eb(generic_sheb):
+ "Builder class for SH-4 [Big-endian]"
+ def __init__(self,myspec):
+ generic_sheb.__init__(self,myspec)
+ self.settings["CFLAGS"]="-O2 -m4 -mb"
+ self.settings["CHOST"]="sh4eb-unknown-linux-gnu"
+
+def register(foo):
+ "Inform main catalyst program of the contents of this plugin."
+ foo.update({
+ "sh" :arch_sh3,
+ "sh3" :arch_sh3,
+ "sh4" :arch_sh4,
+ "sheb" :arch_sh3eb,
+ "sh3eb" :arch_sh3eb,
+ "sh4eb" :arch_sh4eb
+ })
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.57 2005/09/01 15:00:56 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.58 2005/09/12 15:31:57 wolf31o2 Exp $
"""
This class does all of the chroot setup, copying of files, etc. It is
"ia64" : ["ia64"],
"alpha" : ["alpha"],
"sparc" : ["sparc"],
+ "sh" : ["sh"],
"s390" : ["s390"],
"ppc" : ["ppc"],
"ppc64" : ["ppc","ppc64"],
"ia64" : "ia64",
"alpha" : "alpha",
"sparc" : "sparc",
+ "sh3" : "sh",
+ "sh4" : "sh",
+ "sh3eb" : "sh",
+ "sh4eb" : "sh",
"s390" : "s390",
"ppc" : "ppc",
"ppc64" : "ppc64",