[oe] [PATCH 1/3] (e)glibc-package: fix kernel version passed to qemu

Tom Rini trini at embeddedalley.com
Sat May 16 18:11:05 UTC 2009


On Sat, May 16, 2009 at 10:04:38PM +0400, Roman I Khimov wrote:
> Binary locale generation fails with
> 
> FATAL: kernel too old
> 
> if (e)glibc is configured for kernels newer than 2.6.16. This comes from
> kernel version check in sysdeps/unix/sysv/linux/dl-osinfo.h. We configure
> (e)glibc with "--enable-kernel=${OLDEST_KERNEL}", so to pass this check we
> need kernel version reported from QEMU to (e)glibc be $OLDEST_KERNEL or higher.
> 
> Fix qemu "-r" parameter to match OLDEST_KERNEL.

Acked-by: Tom Rini <trini at embeddedalley.com>

> ---
>  recipes/eglibc/eglibc-package.bbclass |    6 +++++-
>  recipes/glibc/glibc-package.bbclass   |    6 +++++-
>  2 files changed, 10 insertions(+), 2 deletions(-)
> 
> diff --git a/recipes/eglibc/eglibc-package.bbclass b/recipes/eglibc/eglibc-package.bbclass
> index 7fcb558..01f698a 100644
> --- a/recipes/eglibc/eglibc-package.bbclass
> +++ b/recipes/eglibc/eglibc-package.bbclass
> @@ -287,7 +287,11 @@ python package_do_split_gconvs () {
>  
>  	def output_locale_binary(name, locale, encoding):
>  		target_arch = bb.data.getVar("TARGET_ARCH", d, 1)
> -		qemu = "qemu-%s -r 2.6.16" % target_arch
> +		kernel_ver = bb.data.getVar("OLDEST_KERNEL", d, 1)
> +		if kernel_ver is None:
> +			qemu = "qemu-%s  -s 1048576" % target_arch
> +		else:
> +			qemu = "qemu-%s  -s 1048576 -r %s" % (target_arch, kernel_ver)
>  		pkgname = 'locale-base-' + legitimize_package_name(name)
>  		m = re.match("(.*)\.(.*)", name)
>  		if m:
> diff --git a/recipes/glibc/glibc-package.bbclass b/recipes/glibc/glibc-package.bbclass
> index 89fbd1c..8db8c5c 100644
> --- a/recipes/glibc/glibc-package.bbclass
> +++ b/recipes/glibc/glibc-package.bbclass
> @@ -252,7 +252,11 @@ python package_do_split_gconvs () {
>  		if target_arch in ("i486", "i586", "i686"):
>  		   target_arch = "i386"
>  
> -		qemu = "qemu-%s  -s 1048576 -r 2.6.16" % target_arch
> +		kernel_ver = bb.data.getVar("OLDEST_KERNEL", d, 1)
> +		if kernel_ver is None:
> +			qemu = "qemu-%s  -s 1048576" % target_arch
> +		else:
> +			qemu = "qemu-%s  -s 1048576 -r %s" % (target_arch, kernel_ver)
>  		pkgname = 'locale-base-' + legitimize_package_name(name)
>  		m = re.match("(.*)\.(.*)", name)
>  		if m:
> -- 
> 1.6.3.1
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
> 

-- 
Tom Rini




More information about the Openembedded-devel mailing list