]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
riscv32: Specify the arch_minimum_kernel as 5.4
authorAlistair Francis <alistair.francis@wdc.com>
Sat, 21 Dec 2019 02:29:42 +0000 (18:29 -0800)
committerAlistair Francis <alistair.francis@wdc.com>
Thu, 27 Aug 2020 15:17:43 +0000 (08:17 -0700)
Specify the minimum kernel version for RISC-V 32-bit as the 5.4 kernel.
We require this commit: "waitid: Add support for waiting for the current
process group" for the kernel as it adds support for the P_PGID id for
the waitid syscall.  Without this patch we can't replace the wait4
syscall on 64-bit time_t only systems.

Reviewed-by: Maciej W. Rozycki <macro@wdc.com>
sysdeps/unix/sysv/linux/riscv/configure
sysdeps/unix/sysv/linux/riscv/configure.ac

index 3018ca8f1b85899ae97350f4f2d7ff7c7dd9b9e6..de3bb6200344d5f746505fd55aee5e3818255234 100755 (executable)
@@ -151,6 +151,10 @@ if test $libc_cv_riscv_int_abi = no; then
   as_fn_error $? "Unable to determine integer ABI" "$LINENO" 5
 fi
 
+if test $libc_cv_riscv_int_abi = ilp32; then
+  arch_minimum_kernel=5.4.0
+fi
+
 libc_cv_riscv_float_abi=no
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
index d4819931ca3f770679a28b3f11632fabfec1bcd8..0f7596502b09a3f1bc7236e4d6d57fac648cdbcb 100644 (file)
@@ -11,6 +11,10 @@ if test $libc_cv_riscv_int_abi = no; then
   AC_MSG_ERROR([Unable to determine integer ABI])
 fi
 
+if test $libc_cv_riscv_int_abi = ilp32; then
+  arch_minimum_kernel=5.4.0
+fi
+
 libc_cv_riscv_float_abi=no
 AC_EGREP_CPP(yes, [#ifdef __riscv_float_abi_double
                   yes