From: Minh Diep Date: Thu, 11 Dec 2014 15:58:54 +0000 (-0800) Subject: LU-6018 conf: replace RHEL_KERNEL_VERSION with RHEL_RELEASE_NO X-Git-Tag: 2.6.93~41 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F33%2F13033%2F3;p=fs%2Flustre-release.git LU-6018 conf: replace RHEL_KERNEL_VERSION with RHEL_RELEASE_NO 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 Change-Id: Iab9a316570b61dfecf1c65c5da5e7af6a68601a5 Reviewed-on: http://review.whamcloud.com/13033 Reviewed-by: Dmitry Eremin Reviewed-by: Bob Glossman Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lnet/autoconf/lustre-lnet.m4 b/lnet/autoconf/lustre-lnet.m4 index 2236120..a3f712c 100644 --- a/lnet/autoconf/lustre-lnet.m4 +++ b/lnet/autoconf/lustre-lnet.m4 @@ -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