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
--- 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 @@
         
 
 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

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel

Reply via email to