[oe] [PATCH 1/2] glibc-package: fix kernel version passed to qemu
Roman I Khimov
khimov at altell.ru
Fri May 15 12:34:08 UTC 2009
Binary locale generation fails with
FATAL: kernel too old
if glibc is configured for kernels newer then 2.6.16.
Fix qemu "-r" parameter to match OLDEST_KERNEL.
---
recipes/glibc/glibc-package.bbclass | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
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
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Openembedded-devel
mailing list