Did a little cleanup on the x86.py to remove some redundant entries and added nocona...
authorChris Gianelloni <wolf31o2@gentoo.org>
Wed, 6 Feb 2008 22:57:55 +0000 (22:57 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Wed, 6 Feb 2008 22:57:55 +0000 (22:57 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1279 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
arch/amd64.py
arch/x86.py

index 69b5211ac09767ddc9f7a24d5dc26ab8303da864..ac488a2eaab6aba8df54b3ecdb61cbd089079f69 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
 # $Id: $
 
+  06 Feb 2008; Chris Gianelloni <wolf31o2@gentoo.org> arch/amd64.py,
+  arch/x86.py:
+  Did a little cleanup on the x86.py to remove some redundant entries and
+  added nocona and core2 to amd64.py, though they're currently commented out.
+
   06 Feb 2008; Chris Gianelloni <wolf31o2@gentoo.org>
   modules/generic_stage_target.py:
   Write out HOSTUSE settings from arch/*.py to make.conf as well as any USE
index 9801370d79d75bf8260397ff197ea36ff9335414..a62b97519c149ce242f4a0b4086bd8f2fce4b466 100644 (file)
@@ -14,6 +14,18 @@ class arch_amd64(generic_amd64):
                self.settings["CFLAGS"]="-O2 -pipe"
                self.settings["CHOST"]="x86_64-pc-linux-gnu"
 
+#class arch_nocona(generic_x86):
+#      def __init__(self,myspec):
+#              generic_amd64.__init__(self,myspec)
+#              self.settings["CFLAGS"]="-O2 -march=nocona -pipe"
+#              self.settings["HOSTUSE"]=["mmx","sse","sse2"]
+
+#class arch_core2(generic_x86):
+#      def __init__(self,myspec):
+#              generic_amd64.__init__(self,myspec)
+#              self.settings["CFLAGS"]="-O2 -march=core2 -pipe"
+#              self.settings["HOSTUSE"]=["mmx","sse","sse2"]
+
 def register():
        "Inform main catalyst program of the contents of this plugin."
        return ({"amd64":arch_amd64}, ("x86_64", ))
index 166d03b7c48f076d668eaff9600c030b5bd20959..6592f9ebdc0fc90fd37c73c24b34b3868f332b4b 100644 (file)
@@ -39,12 +39,6 @@ class arch_i586(generic_x86):
                self.settings["CFLAGS"]="-O2 -march=i586 -pipe"
                self.settings["CHOST"]="i586-pc-linux-gnu"
 
-class arch_pentium_mmx(arch_i586):
-       def __init__(self,myspec):
-               arch_i586.__init__(self,myspec)
-               self.settings["CFLAGS"]="-O2 -march=pentium-mmx -pipe"
-               self.settings["HOSTUSE"]=["mmx"]
-       
 class arch_i686(generic_x86):
        def __init__(self,myspec):
                generic_x86.__init__(self,myspec)
@@ -59,51 +53,58 @@ class arch_athlon(generic_x86):
                self.settings["HOSTUSE"]=["mmx","3dnow"]
 
 class arch_athlon_xp(generic_x86):
-       # This handles XP and MP processors
        def __init__(self,myspec):
                generic_x86.__init__(self,myspec)
                self.settings["CFLAGS"]="-O2 -march=athlon-xp -pipe"
                self.settings["CHOST"]="i686-pc-linux-gnu"
                self.settings["HOSTUSE"]=["mmx","3dnow","sse"]
 
+class arch_pentium_mmx(arch_i586):
+       def __init__(self,myspec):
+               arch_i586.__init__(self,myspec)
+               self.settings["CFLAGS"]="-O2 -march=pentium-mmx -pipe"
+               self.settings["HOSTUSE"]=["mmx"]
+       
+class arch_pentium2(generic_x86):
+       def __init__(self,myspec):
+               arch_i686.__init__(self,myspec)
+               self.settings["CFLAGS"]="-O2 -march=pentium2 -pipe"
+               self.settings["HOSTUSE"]=["mmx"]
+
 class arch_pentium3(generic_x86):
        def __init__(self,myspec):
-               generic_x86.__init__(self,myspec)
+               arch_i686.__init__(self,myspec)
                self.settings["CFLAGS"]="-O2 -march=pentium3 -pipe"
-               self.settings["CHOST"]="i686-pc-linux-gnu"
                self.settings["HOSTUSE"]=["mmx","sse"]
 
 class arch_pentium4(generic_x86):
        def __init__(self,myspec):
-               generic_x86.__init__(self,myspec)
+               arch_i686.__init__(self,myspec)
                self.settings["CFLAGS"]="-O2 -march=pentium4 -pipe"
-               self.settings["CHOST"]="i686-pc-linux-gnu"
                self.settings["HOSTUSE"]=["mmx","sse"]
 
 class arch_prescott(generic_x86):
        def __init__(self,myspec):
-               generic_x86.__init__(self,myspec)
+               arch_i686.__init__(self,myspec)
                self.settings["CFLAGS"]="-O2 -march=prescott -pipe"
-               self.settings["CHOST"]="i686-pc-linux-gnu"
                self.settings["HOSTUSE"]=["mmx","sse","sse2"]
 
-#class arch_nocona(generic_x86):
-#      def __init__(self,myspec):
-#              generic_x86.__init__(self,myspec)
-#              self.settings["CFLAGS"]="-O2 -march=nocona -pipe"
-#              self.settings["CHOST"]="i686-pc-linux-gnu"
-#              self.settings["HOSTUSE"]=["mmx","sse","sse2"]
-
-#class arch_core2(generic_x86):
-#      def __init__(self,myspec):
-#              generic_x86.__init__(self,myspec)
-#              self.settings["CFLAGS"]="-O2 -march=core2 -pipe"
-#              self.settings["CHOST"]="i686-pc-linux-gnu"
-#              self.settings["HOSTUSE"]=["mmx","sse","sse2"]
-
 def register():
        "Inform main catalyst program of the contents of this plugin."
-       return ({"pentium4":arch_pentium4,"x86":arch_x86,"i386":arch_i386,"i486":arch_i486,"i586":arch_i586,"i686":arch_i686,"athlon":arch_athlon,
-       "athlon-xp":arch_athlon_xp,"athlon-mp":arch_athlon_xp,"pentium3":arch_pentium3,"pentium-mmx":arch_pentium_mmx,"prescott":arch_prescott},
+       return ({
+               "x86"                   : arch_x86,
+               "i386"                  : arch_i386,
+               "i486"                  : arch_i486,
+               "i586"                  : arch_i586,
+               "i686"                  : arch_i686,
+               "athlon"                : arch_athlon,
+               "athlon-xp"             : arch_athlon_xp,
+               "athlon-mp"             : arch_athlon_xp,
+               "pentium-mmx"           : arch_pentium_mmx,
+               "pentium2"              : arch_pentium2,
+               "pentium3"              : arch_pentium3,
+               "pentium4"              : arch_pentium4,
+               "prescott"              : arch_prescott
+       },
        ('i386', 'i486', 'i586', 'i686'))