about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlistair Francis <alistair.francis@wdc.com>2019-12-20 18:29:42 -0800
committerAlistair Francis <alistair.francis@wdc.com>2020-04-25 19:16:15 -0700
commit376aa9d4274782a2aa99efb6282af93135abae8b (patch)
treec2151f9bc6ae825d6cdb6251c8f2a5e835f97212
parent5bafccaff6f145a5375d748ef36eb594c4930bdb (diff)
downloadglibc-376aa9d4274782a2aa99efb6282af93135abae8b.tar.gz
glibc-376aa9d4274782a2aa99efb6282af93135abae8b.tar.xz
glibc-376aa9d4274782a2aa99efb6282af93135abae8b.zip
riscv32: Specify the arch_minimum_kernel as 5.4
-rwxr-xr-xsysdeps/unix/sysv/linux/riscv/configure4
-rw-r--r--sysdeps/unix/sysv/linux/riscv/configure.ac4
2 files changed, 8 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/riscv/configure b/sysdeps/unix/sysv/linux/riscv/configure
index 2b3c77f18c..33139618e7 100755
--- a/sysdeps/unix/sysv/linux/riscv/configure
+++ b/sysdeps/unix/sysv/linux/riscv/configure
@@ -162,6 +162,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.  */
diff --git a/sysdeps/unix/sysv/linux/riscv/configure.ac b/sysdeps/unix/sysv/linux/riscv/configure.ac
index 710d46afcd..9c736415f7 100644
--- a/sysdeps/unix/sysv/linux/riscv/configure.ac
+++ b/sysdeps/unix/sysv/linux/riscv/configure.ac
@@ -13,6 +13,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