summaryrefslogtreecommitdiff
path: root/recipes-core
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core')
-rw-r--r--recipes-core/glibc-2.24/glibc-2.24/0001-linux-minimum-version-set-to-3.1.10.patch49
-rw-r--r--recipes-core/glibc-2.24/glibc_2.24.bbappend3
2 files changed, 52 insertions, 0 deletions
diff --git a/recipes-core/glibc-2.24/glibc-2.24/0001-linux-minimum-version-set-to-3.1.10.patch b/recipes-core/glibc-2.24/glibc-2.24/0001-linux-minimum-version-set-to-3.1.10.patch
new file mode 100644
index 0000000..028f0c6
--- /dev/null
+++ b/recipes-core/glibc-2.24/glibc-2.24/0001-linux-minimum-version-set-to-3.1.10.patch
@@ -0,0 +1,49 @@
+From 68bc2dbe4ee91ee48bbd398bbbfcae01a9bda7ff Mon Sep 17 00:00:00 2001
+From: Max Krummenacher <max.krummenacher@toradex.com>
+Date: Mon, 19 Dec 2016 16:57:51 +0100
+Subject: [PATCH] linux minimum version: set to 3.1.10
+
+This allows using glibc 2.24 with the older 3.1.10 L4T kernel.
+
+Set the minimum allowed kernel version to 3.1.10.
+The only conditional which got removed from 2.23 to 2.24 is for kernels
+> 3.0.0
+__ASSUME_FUTEX_LOCK_PI with commit f5c77f78ec03363d5e550c4996deb75ee3f2e32a
+The code mentioned in the commit which makes the conditional unneeded is
+also part of the L4T kernel.
+
+Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
+---
+ sysdeps/unix/sysv/linux/configure | 2 +-
+ sysdeps/unix/sysv/linux/configure.ac | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/sysdeps/unix/sysv/linux/configure b/sysdeps/unix/sysv/linux/configure
+index cace758..cacb9e7 100644
+--- a/sysdeps/unix/sysv/linux/configure
++++ b/sysdeps/unix/sysv/linux/configure
+@@ -51,7 +51,7 @@ fi
+ # set arch_minimum_kernel already, let that override our defaults here.
+ # Note that we presume such a fragment has set libc_cv_gcc_unwind_find_fde
+ # if appropriate too.
+-test -n "$arch_minimum_kernel" || arch_minimum_kernel=3.2.0
++test -n "$arch_minimum_kernel" || arch_minimum_kernel=3.1.10
+ if test -n "$minimum_kernel"; then
+
+ user_version=$((`echo "$minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1 \* 65536 + \2 \* 256 + \3/'`))
+diff --git a/sysdeps/unix/sysv/linux/configure.ac b/sysdeps/unix/sysv/linux/configure.ac
+index 13abda0..b7df956 100644
+--- a/sysdeps/unix/sysv/linux/configure.ac
++++ b/sysdeps/unix/sysv/linux/configure.ac
+@@ -33,7 +33,7 @@ fi
+ # set arch_minimum_kernel already, let that override our defaults here.
+ # Note that we presume such a fragment has set libc_cv_gcc_unwind_find_fde
+ # if appropriate too.
+-test -n "$arch_minimum_kernel" || arch_minimum_kernel=3.2.0
++test -n "$arch_minimum_kernel" || arch_minimum_kernel=3.1.10
+ if test -n "$minimum_kernel"; then
+ changequote(,)
+ user_version=$((`echo "$minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1 \* 65536 + \2 \* 256 + \3/'`))
+--
+2.5.5
+
diff --git a/recipes-core/glibc-2.24/glibc_2.24.bbappend b/recipes-core/glibc-2.24/glibc_2.24.bbappend
new file mode 100644
index 0000000..405ef16
--- /dev/null
+++ b/recipes-core/glibc-2.24/glibc_2.24.bbappend
@@ -0,0 +1,3 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/glibc-2.24:"
+SRC_URI_append = " file://0001-linux-minimum-version-set-to-3.1.10.patch"
+OLDEST_KERNEL = "3.1.10"