Whamcloud - gitweb
LU-6018 conf: replace RHEL_KERNEL_VERSION with RHEL_RELEASE_NO 33/13033/3
authorMinh Diep <minh.diep@intel.com>
Thu, 11 Dec 2014 15:58:54 +0000 (07:58 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 19 Jan 2015 17:48:56 +0000 (17:48 +0000)
No longer we use kernel version to detect kernel when we
compile ofed compat-rdma. We are using RHEL_RELEASE_NO

Signed-off-by: Minh Diep <minh.diep@intel.com>
Change-Id: Iab9a316570b61dfecf1c65c5da5e7af6a68601a5
Reviewed-on: http://review.whamcloud.com/13033
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lnet/autoconf/lustre-lnet.m4

index 2236120..a3f712c 100644 (file)
@@ -335,10 +335,10 @@ directory which is likely in ${O2IBPATH%-*}
                        fi
                else
                        if test "x$RHEL_KERNEL" = xyes; then
-                               case "$RHEL_KERNEL_VERSION" in
-                                       2.6.32-358*)
+                               case "$RHEL_RELEASE_NO" in
+                                       64)
                                                EXTRA_OFED_INCLUDE="$EXTRA_OFED_INCLUDE -DCONFIG_COMPAT_RHEL_6_4" ;;
-                                       2.6.32-431*)
+                                       65)
                                                EXTRA_OFED_INCLUDE="$EXTRA_OFED_INCLUDE -DCONFIG_COMPAT_RHEL_6_4 -DCONFIG_COMPAT_RHEL_6_5" ;;
                                esac
                        elif test "x$SUSE_KERNEL" = xyes; then