updated sparc patches
authorJohn P. Davis <zhen@gentoo.org>
Wed, 31 Mar 2004 15:18:43 +0000 (15:18 +0000)
committerJohn P. Davis <zhen@gentoo.org>
Wed, 31 Mar 2004 15:18:43 +0000 (15:18 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@330 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
arch/sparc.py
modules/targets.py

index a835103310cb8de940c20f0439ba0fa97495845f..51fc033e6a07489723272a309419978a1bab1d08 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,10 @@
 # ChangeLog for gentoo/src/catalyst 
 # Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.29 2004/03/30 19:45:14 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.30 2004/03/31 15:18:43 zhen Exp $
+
+  31 Mar 2004; John Davis <zhen@gentoo.org> arch/sparc.py, modules/targets.py:
+  sparc compatibility patches from gustavoz@gentoo.org added. These patches add
+  support for sparc32/64 build compatibility
 
   30 Mar 2004; John Davis <zhen@gentoo.org>
   livecd/runscript/default-runscript.sh, modules/targets.py,
index a61caa011b996b716f5c476cd6fbb12be7ad4cb1..dd14adf0bbfe62d147f9d00eb73eacc0fc8cbf74 100644 (file)
@@ -9,7 +9,12 @@ class generic_sparc(builder.generic):
        def __init__(self,myspec):
                builder.generic.__init__(self,myspec)
                self.settings["mainarch"]="sparc"
-               self.settings["CHROOT"]="chroot"
+               if self.settings["hostarch"]=="sparc64":
+                       if not os.path.exists("/usr/bin/sparc32"):
+                               raise CatalystError,"required /usr/bin/sparc32 executable not found (\"emerge sparc-utils\" to fix.)"
+                       self.settings["CHROOT"]="/usr/bin/sparc32 chroot"
+               else:
+                       self.settings["CHROOT"]="chroot"
 
 class arch_sparc(generic_sparc):
        "builder class for generic sparc (sun4cdm)"
index d10d0912775e6a88406aa2d54564b38a5648477d..5fdcfa30c552383e270f6dc72e8fd69725cf5435 100644 (file)
@@ -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.96 2004/03/30 19:45:14 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/Attic/targets.py,v 1.97 2004/03/31 15:18:43 zhen Exp $
 
 import os,string,imp,types,shutil
 from catalyst_support import *
@@ -26,7 +26,7 @@ class generic_stage_target(generic_target):
                
                targetmap={     "x86" : ["x86"],
                                "amd64" : ["x86","amd64"],
-                               "sparc64" : ["sparc64"],
+                               "sparc64" : ["sparc","sparc64"],
                                "ia64" : ["ia64"],
                                "alpha" : ["alpha"],
                                "sparc" : ["sparc"],