Whamcloud - gitweb
LU-11541 build: Use correct kernel version for DKMS MLNX OFED.
[fs/lustre-release.git] / lnet / autoconf / lustre-lnet.m4
index f5b084a..4ea62ad 100644 (file)
@@ -129,7 +129,9 @@ If you still want to build Lustre for your OFED I/B stack, you need to install a
 Instead, if you want to build Lustre for your kernel's built-in I/B stack rather than your installed OFED stack, either remove the OFED package(s) or use --with-o2ib=no.
                                             ])
                        ])
 Instead, if you want to build Lustre for your kernel's built-in I/B stack rather than your installed OFED stack, either remove the OFED package(s) or use --with-o2ib=no.
                                             ])
                        ])
-                       if test -e $O2IBPATHS/default; then
+                       if test -e $O2IBPATHS/${LINUXRELEASE}; then
+                           O2IBPATHS=$O2IBPATHS/${LINUXRELEASE}
+                       elif test -e $O2IBPATHS/default; then
                            O2IBPATHS=$O2IBPATHS/default
                        fi
                        OFED="yes"
                            O2IBPATHS=$O2IBPATHS/default
                        fi
                        OFED="yes"