]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
powerpc: Set minimum kernel version for powerpc64le
authorRajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
Tue, 7 Feb 2017 05:19:47 +0000 (10:49 +0530)
committerRajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
Tue, 7 Feb 2017 05:19:47 +0000 (10:49 +0530)
This patch sets the minimum kernel version required for ppc64le as 3.10.0.

ChangeLog
sysdeps/unix/sysv/linux/powerpc/powerpc64/configure
sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac

index f8dacf7781eea751da24a906787ae579ae7a3c95..4997650b735180f67e1c101496671857859c755d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2017-02-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
+
+       [BZ #15998]
+       * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
+       (arch_minimum_kernel): Set as 3.10.0 for ppc64le.
+       * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
+
 2017-02-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
 
        * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Redefine
index af069700e9e41ce04256c68a34f6f5ef790b2c1c..4e7fcf1d9787d88d8ac328fbf4cb635f1614cfd1 100644 (file)
@@ -207,3 +207,27 @@ $as_echo "$libc_cv_ppc64_def_call_elf" >&6; }
     libc_extra_cppflags="$libc_extra_cppflags -D_CALL_ELF=1"
   fi
 fi
+# Set minimum kernel version for ppc64le.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine type to set minimum kernel version" >&5
+$as_echo_n "checking the machine type to set minimum kernel version... " >&6; }
+if ${libc_cv_ppc64_le+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
+                      yes
+                     #endif
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+  $EGREP "yes" >/dev/null 2>&1; then :
+  arch_minimum_kernel=3.10.0
+else
+  libc_cv_ppc64_le=no
+fi
+rm -f conftest*
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc64_le" >&5
+$as_echo "$libc_cv_ppc64_le" >&6; }
index 0822915c4306729f5ac578c4b904938289da60b8..f9cba6e15d2caf5ca4eefa50d76937e7f480064a 100644 (file)
@@ -27,3 +27,10 @@ else
     libc_extra_cppflags="$libc_extra_cppflags -D_CALL_ELF=1"
   fi
 fi
+# Set minimum kernel version for ppc64le.
+AC_CACHE_CHECK([the machine type to set minimum kernel version],
+  [libc_cv_ppc64_le],
+  [AC_EGREP_CPP(yes,[#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
+                      yes
+                     #endif
+  ], arch_minimum_kernel=3.10.0, libc_cv_ppc64_le=no)])