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

Dennis Gilmore dennis at ausil.us
Mon Nov 26 17:46:08 UTC 2007


On Monday 26 November 2007, seth vidal wrote:
> 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?

it is AFAIK a i586 + cmov so there is no reason that a i686 with cmov  couldnt 
run geode packages.  but that case there cannon arch is i586  because we say 
that to be i686 it needs cmov

>
>  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?
http://www.amd.com/us-en/ConnectivitySolutions/ProductInformation/0,,50_2330_9863_13022^13058,00.html

its a x86 cpu that has graphics, northbridge built into the cpu.

Dennis




More information about the Yum-devel mailing list