glibc-package bbclass: add hack to avoid "kernel too old" error when generating local...
authorKoen Kooi <koen@openembedded.org>
Sat, 12 Sep 2009 13:55:45 +0000 (15:55 +0200)
committerKoen Kooi <koen@openembedded.org>
Sat, 12 Sep 2009 13:55:45 +0000 (15:55 +0200)
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

index 69b569e..4d7f6fd 100644 (file)
@@ -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: