Apply patch from gentoo bug #255793 for enhanced sh/arm support
authorAndrew Gaffney <agaffney@gentoo.org>
Sat, 21 Feb 2009 17:06:57 +0000 (11:06 -0600)
committerAndrew Gaffney <agaffney@gentoo.org>
Sat, 21 Feb 2009 17:06:57 +0000 (11:06 -0600)
ChangeLog
arch/arm.py
arch/sh.py

index af61f542e977266517acc476763e3919c0a89b76..320ee4eab32643d012e7800ac3a3db569c4cc078 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,9 @@
 # Copyright 2002-2009 Gentoo Foundation; 2008-2009 Various authors (see AUTHORS)
 # Distributed under the GPL v2
 
+  21 Feb 2009; Andrew Gaffney <agaffney@gentoo.org> arch/arm.py, arch/sh.py:
+  Apply patch from gentoo bug #255793 for enhanced sh/arm support
+
   21 Jan 2009; Andrew Gaffney <agaffney@gentoo.org>
   modules/generic_stage_target.py:
   Update reference to make.conf.example for new location in portage-2.1.6
index f3639f332d31dce5e71cab0f6c80e3ebfc810515..aa6e616a6ff0a844e67d1f5958b1e613832848c2 100644 (file)
@@ -8,7 +8,6 @@ class generic_arm(builder.generic):
                builder.generic.__init__(self,myspec)
                self.settings["CHROOT"]="chroot"
                self.settings["CFLAGS"]="-O2 -pipe"
-               self.settings["CXXFLAGS"]="-O1 -pipe"
    
 class generic_armeb(builder.generic):
        "Abstract base class for all arm (big endian) builders"
@@ -16,7 +15,6 @@ class generic_armeb(builder.generic):
                builder.generic.__init__(self,myspec)
                self.settings["CHROOT"]="chroot"
                self.settings["CFLAGS"]="-O2 -pipe"
-               self.settings["CXXFLAGS"]="-O1 -pipe"
 
 class arch_arm(generic_arm):
        "Builder class for arm (little endian) target"
@@ -31,25 +29,81 @@ class arch_armeb(generic_armeb):
                self.settings["CHOST"]="armeb-unknown-linux-gnu"
 
 class arch_armv4l(generic_arm):
-       "Builder class for armv4l (StrongArm-110) target"
+       "Builder class for armv4l target"
        def __init__(self,myspec):
                generic_arm.__init__(self,myspec)
-               self.settings["CFLAGS"]+=" -mcpu=strongarm110"
                self.settings["CHOST"]="armv4l-unknown-linux-gnu"
 
-class arch_armv5b(generic_arm):
-       "Builder class for armv5b (XScale) target"
+class arch_armv4tl(generic_arm):
+       "Builder class for armv4tl target"
        def __init__(self,myspec):
                generic_arm.__init__(self,myspec)
+               self.settings["CHOST"]="armv4tl-softfloat-linux-gnueabi"
+
+class arch_armv5l(generic_arm):
+       "Builder class for armv5l target"
+       def __init__(self,myspec):
+               generic_arm.__init__(self,myspec)
+               self.settings["CHOST"]="armv5l-softfloat-linux-gnueabi"
+
+class arch_armv5tl(generic_arm):
+       "Builder class for armv5tl target"
+       def __init__(self,myspec):
+               generic_arm.__init__(self,myspec)
+               self.settings["CHOST"]="armv5tl-softfloat-linux-gnueabi"
+
+class arch_armv5tel(generic_arm):
+       "Builder class for armv5tel target"
+       def __init__(self,myspec):
+               generic_arm.__init__(self,myspec)
+               self.settings["CHOST"]="armv5tel-softfloat-linux-gnueabi"
+
+class arch_armv5tejl(generic_arm):
+       "Builder class for armv5tejl target"
+       def __init__(self,myspec):
+               generic_arm.__init__(self,myspec)
+               self.settings["CHOST"]="armv5tejl-softfloat-linux-gnueabi"
+
+class arch_armv6l(generic_arm):
+       "Builder class for armv6l target"
+       def __init__(self,myspec):
+               generic_arm.__init__(self,myspec)
+               self.settings["CHOST"]="armv6l-softloat-linux-gnueabi"
+
+class arch_armv7l(generic_arm):
+       "Builder class for armv7l target"
+       def __init__(self,myspec):
+               generic_arm.__init__(self,myspec)
+               self.settings["CHOST"]="armv7l-softfloat-linux-gnueabi"
+
+class arch_armv7al(generic_armeb):
+       "Builder class for armv7al target"
+       def __init__(self,myspec):
+               generic_arm.__init__(self,myspec)
+               self.settings["CHOST"]="armv7al-softfloat-linux-gnueabi"
+
+class arch_armv5teb(generic_armeb):
+       "Builder class for armv5teb (XScale) target"
+       def __init__(self,myspec):
+               generic_armeb.__init__(self,myspec)
                self.settings["CFLAGS"]+=" -mcpu=xscale"
-               self.settings["CHOST"]="armv5b-unknown-linux-gnu"
+               self.settings["CHOST"]="armv5teb-softfloat-linux-gnueabi"
 
 def register():
        "Inform main catalyst program of the contents of this plugin."
        return ({
                "arm"    : arch_arm,
                "armv4l" : arch_armv4l,
+               "armv4tl": arch_armv4tl,
+               "armv5l" : arch_armv5l,
+               "armv5tl": arch_armv5tl,
+               "armv5tel": arch_armv5tel,
+               "armv5tejl": arch_armv5tejl,
+               "armv6l" : arch_armv6l,
+               "armv7l" : arch_armv7l,
+               "armv7al" : arch_armv7al,
                "armeb"  : arch_armeb,
-               "armv5b" : arch_armv5b
-       }, ("arm", "armv4l", "armeb", "armv5b", "armv5tel") )
+               "armv5teb" : arch_armv5teb
+       }, ("arm", "armv4l", "armv4tl", "armv5l", "armv5tl", "armv5tel", "armv5tejl", "armv6l", 
+"armv7l", "armv7al", "armeb", "armv5teb") )
 
index 8fb970567bdabf99f7e69cc4e55a507eaab6eb47..a1057c9c456d920d1968fcb18b4809753cc9b383 100644 (file)
@@ -42,6 +42,13 @@ class arch_sh4(generic_sh):
                self.settings["CFLAGS"]="-O2 -m4 -pipe"
                self.settings["CHOST"]="sh4-unknown-linux-gnu"
 
+class arch_sh4a(generic_sh):
+       "Builder class for SH-4a [Little-endian]"
+       def __init__(self,myspec):
+               generic_sh.__init__(self,myspec)
+               self.settings["CFLAGS"]="-O2 -m4a -pipe"
+               self.settings["CHOST"]="sh4a-unknown-linux-gnu"
+
 class arch_sheb(generic_sheb):
        "Builder class for SH [Big-endian]"
        def __init__(self,myspec):
@@ -70,6 +77,13 @@ class arch_sh4eb(generic_sheb):
                self.settings["CFLAGS"]="-O2 -m4 -pipe"
                self.settings["CHOST"]="sh4eb-unknown-linux-gnu"
 
+class arch_sh4aeb(generic_sheb):
+       "Builder class for SH-4a [Big-endian]"
+       def __init__(self,myspec):
+               generic_sheb.__init__(self,myspec)
+               self.settings["CFLAGS"]="-O2 -m4a -pipe"
+               self.settings["CHOST"]="sh4aeb-unknown-linux-gnu"
+
 def register():
        "Inform main catalyst program of the contents of this plugin."
        return ({
@@ -77,8 +91,10 @@ def register():
                        "sh2"   :arch_sh2,
                        "sh3"   :arch_sh3,
                        "sh4"   :arch_sh4,
+                       "sh4a"  :arch_sh4a,
                        "sheb"  :arch_sheb,
                        "sh2eb" :arch_sh2eb,
                        "sh3eb" :arch_sh3eb,
-                       "sh4eb" :arch_sh4eb
-       }, ("sh2","sh3","sh4","sh2eb","sh3eb","sh4eb"))
+                       "sh4eb" :arch_sh4eb,
+                       "sh4aeb" :arch_sh4aeb
+       }, ("sh2","sh3","sh4","sh4a","sh2eb","sh3eb","sh4eb","sh4aeb"))