[oe-commits] Koen Kooi : glibc-package bbclass: add hack to avoid "kernel too old" error when generating locales in angstrom

git version control git at git.openembedded.org
Sat Sep 12 13:59:16 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 18158e33775356f5d166908d253159b05125a2fb
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=18158e33775356f5d166908d253159b05125a2fb

Author: Koen Kooi <koen at openembedded.org>
Date:   Sat Sep 12 15:55:45 2009 +0200

glibc-package bbclass: add hack to avoid "kernel too old" error when generating locales in angstrom

The proper fix would be to patch linux-libc-headers with 0001-implement-TIF_RESTORE_SIGMASK-support-and-enable-the.patch and all arm kernels as well. Since that's quite an undertaking angstrom needs to short term hack like this commit to keep things building while the proper fix is being worked on.

---

 recipes/glibc/glibc-package.bbclass |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/recipes/glibc/glibc-package.bbclass b/recipes/glibc/glibc-package.bbclass
index 69b569e..4d7f6fd 100644
--- a/recipes/glibc/glibc-package.bbclass
+++ b/recipes/glibc/glibc-package.bbclass
@@ -265,7 +265,12 @@ python package_do_split_gconvs () {
 		elif target_arch == "powerpc":
 			target_arch = "ppc"
 
-		kernel_ver = bb.data.getVar("OLDEST_KERNEL", d, 1)
+		# This is a hack till linux-libc-headers gets patched for the missing arm syscalls and all arm device kernels as well
+		if bb.data.getVar("DISTRO_NAME", d, 1) == "Angstrom":
+			kernel_ver = "2.6.24"
+		else:
+			kernel_ver = bb.data.getVar("OLDEST_KERNEL", d, 1)
+
 		if kernel_ver is None:
 			qemu = "qemu-%s  -s 1048576" % target_arch
 		else:





More information about the Openembedded-commits mailing list