[Yum-devel] Re: [Yum] [PATCH] add geode support

seth vidal skvidal at fedoraproject.org
Mon Nov 26 17:21:25 UTC 2007


On Mon, 2007-11-26 at 11:15 -0600, Dennis Gilmore wrote:
> Hi All, 
> 
> im working on adding geode support to yum and rpm so that OLPC can build 
> optimised glibc, openssl  its is a i586 with cmov,  it also includes 3dnow 
> 
> the attached patch detects geode cpus 
> 
> Dennis

moving this to yum-devel comments below:


--- yum-3.2.7/rpmUtils/arch.py.orig     2007-11-26 11:08:40.000000000
-0600
+++ yum-3.2.7/rpmUtils/arch.py  2007-11-26 11:10:14.000000000 -0600
@@ -16,6 +16,7 @@
     # ia32
     "athlon": "i686",
     "i686": "i586",
+    "geode": "i586",
     "i586": "i486",
     "i486": "i386",
     "i386": "noarch",
@@ -152,6 +153,15 @@

Can any i686 really run geode pkgs? Is it completely compatible?
         
 
 def getCanonX86Arch(arch):
+    # 
+    if arch = "i586":
+        f = open("/proc/cpuinfo", "r")
+        lines = f.readlines()
+        f.close()
+        for line in lines:
+            if line.startswith("model name") and
line.find("Geode(TM)") != -1:
+                return "geode"
+        return arch
     # only athlon vs i686 isn't handled with uname currently
     if arch != "i686":
         return arch

Is this really an x86 arch or is it something else that happens to be
able to run i586, i486, i386 pkgs?

-sv





More information about the Yum-devel mailing list