[oe] [oe-commits] Roman I Khimov : (e) glibc-package: fix kernel version passed to qemu

Phil Blundell philb at gnu.org
Mon May 18 20:00:35 UTC 2009


On Mon, 2009-05-18 at 23:37 +0400, Roman I Khimov wrote:
> On Monday 18 May 2009 22:54:53 Phil Blundell wrote:
> > I think it would be better to leave the semantics of OLDEST_KERNEL alone
> > and just teach qemu to use either the same __LINUX_KERNEL_VERSION as
> > glibc's configure script has settled on, or (perhaps better) just the
> > newest version that it supports for the given target.
> 
> Well, from my point of view, any static version is bad, because it's magic 
> thrown in. When I've stumbled upon this, I've scratched my head a bit on why 
> the hell is it 2.6.16, not 2.6.10, not 2.6.20, not anything else but 2.6.16. 
> Sure enough, it's just something that worked some time ago for someone and was 
> hardcoded then.

Agreed, a static version is clearly wrong.

> Of course, we can take version from __LINUX_KERNEL_VERSION, but that's more 
> work and it doesn't fix misconfiguration we have when glibc has to decide that 
> it knows better its minimal requirements for target.

I'm not sure what you're saying here.  __LINUX_KERNEL_VERSION (from
config.h) is precisely the version that glibc is compiled to expect (and
what dl-sysdep checks against).  So, if you run qemu as that same kernel
version, it is guaranteed to always be compatible with the glibc build
in question.

p.






More information about the Openembedded-devel mailing list