Additional sh patch from gentoo bug #255793
authorAndrew Gaffney <agaffney@gentoo.org>
Tue, 24 Feb 2009 13:30:03 +0000 (07:30 -0600)
committerAndrew Gaffney <agaffney@gentoo.org>
Tue, 24 Feb 2009 13:30:03 +0000 (07:30 -0600)
ChangeLog
modules/catalyst/arch/sh.py

index 3eddc99893a6ee6feeb5222b2d663036b800b933..dcaf389163662c98d08b1b8a5164d5f029350400 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,10 @@
 # Copyright 2002-2009 Gentoo Foundation; 2008-2009 Various authors (see AUTHORS)
 # Distributed under the GPL v2
 
+  24 Feb 2009; Andrew Gaffney <agaffney@gentoo.org>
+  modules/catalyst/arch/sh.py:
+  Additional sh patch from gentoo bug #255793
+
   21 Feb 2009; Andrew Gaffney <agaffney@gentoo.org>
   modules/catalyst/arch/arm.py, modules/catalyst/arch/sh.py:
   Apply modified patch from gentoo bug #255793 for enhanced sh/arm support
index 7f65c44ab606a25ca205bac0a01d7f83b03910e0..fe169d619225742042c05642143a2d83fe1422f2 100644 (file)
@@ -27,6 +27,13 @@ class arch_sh2(generic_sh):
                self.settings["CFLAGS"]="-O2 -m2 -pipe"
                self.settings["CHOST"]="sh2-unknown-linux-gnu"
 
+class arch_sh2a(generic_sh):
+       "Builder class for SH-2A [Little-endian]"
+       def __init__(self,myspec):
+               generic_sh.__init__(self,myspec)
+               self.settings["CFLAGS"]="-O2 -m2a -pipe"
+               self.settings["CHOST"]="sh2a-unknown-linux-gnu"
+
 class arch_sh3(generic_sh):
        "Builder class for SH-3 [Little-endian]"
        def __init__(self,myspec):
@@ -42,7 +49,7 @@ class arch_sh4(generic_sh):
                self.settings["CHOST"]="sh4-unknown-linux-gnu"
 
 class arch_sh4a(generic_sh):
-       "Builder class for SH-4a [Little-endian]"
+       "Builder class for SH-4A [Little-endian]"
        def __init__(self,myspec):
                generic_sh.__init__(self,myspec)
                self.settings["CFLAGS"]="-O2 -m4a -pipe"
@@ -56,7 +63,7 @@ class arch_sheb(generic_sheb):
                self.settings["CHOST"]="sheb-unknown-linux-gnu"
 
 class arch_sh4aeb(generic_sheb):
-       "Builder class for SH-4a [Big-endian]"
+       "Builder class for SH-4A [Big-endian]"
        def __init__(self,myspec):
                generic_sheb.__init__(self,myspec)
                self.settings["CFLAGS"]="-O2 -m4a -pipe"
@@ -69,6 +76,13 @@ class arch_sh2eb(generic_sheb):
                self.settings["CFLAGS"]="-O2 -m2 -pipe"
                self.settings["CHOST"]="sh2eb-unknown-linux-gnu"
 
+class arch_sh2aeb(generic_sheb):
+       "Builder class for SH-2A [Big-endian]"
+       def __init__(self,myspec):
+               generic_sheb.__init__(self,myspec)
+               self.settings["CFLAGS"]="-O2 -m2a -pipe"
+               self.settings["CHOST"]="sh2aeb-unknown-linux-gnu"
+
 class arch_sh3eb(generic_sheb):
        "Builder class for SH-3 [Big-endian]"
        def __init__(self,myspec):
@@ -86,14 +100,16 @@ class arch_sh4eb(generic_sheb):
 _subarch_map = {
        "sh"    :arch_sh,
        "sh2"   :arch_sh2,
+       "sh2a"  :arch_sh2a,
        "sh3"   :arch_sh3,
        "sh4"   :arch_sh4,
        "sh4a"  :arch_sh4a,
        "sheb"  :arch_sheb,
+       "sh2aeb":arch_sh2aeb,
        "sh2eb" :arch_sh2eb,
        "sh3eb" :arch_sh3eb,
        "sh4eb" :arch_sh4eb
 }
 
-_machine_map = ("sh2","sh3","sh4","sh4a","sh2eb","sh3eb","sh4eb","sh4aeb")
+_machine_map = ("sh2","sh2a","sh3","sh4","sh4a","sh2eb","sh2aeb","sh3eb","sh4eb","sh4aeb")