[PATCH] add geode support
Dennis Gilmore <[email protected]>
| Newsgroups | gmane.linux.rpm.yum |
|---|---|
| Message-ID | <[email protected]> |
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 mailing list [email protected] https://lists.dulug.duke.edu/mailman/listinfo/yum
yum-add-geode-support.patch
(text/x-diff, 750 B)
--- 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
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBHSv8skSxm47BaWfcRAoIYAKCuGOq7enHoWDVQgCa3hxhMF/RDJACgpZhk UvLK5HpUNTFL+yFpxLd041I= =hr4V -----END PGP SIGNATURE-----