Whamcloud - gitweb
LU-5953 build: use installed OFED by default 86/12686/19
authorBruno Faccini <bruno.faccini@intel.com>
Wed, 12 Nov 2014 14:23:06 +0000 (15:23 +0100)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 25 Mar 2015 23:56:19 +0000 (23:56 +0000)
commit1222a7114a5558a2f5b81cb570966546e37dec48
treeb8931fc0c0c18212cc0916e69d64566dcba4cb7d
parentd9e86108724c06e3e6d25081caaf5803abf4416c
LU-5953 build: use installed OFED by default

During LNET autoconf phase, if OFED installed and its devel headers
are available, default to use it instead of in-Kernel IB driver.

Also handle wrong case where OFED installed but not devel preventing
to build against OFED. Had to add new "patches" vs "kernel_patches"
dir name use in recent OFED versions and to avoid its check to
collide with inkernel-IB builds case.

Current OFED headers detection mechanism allow for non-standard
prefix but relies on "ofed_info" command and on "%prefix/openib"
link (both are ok for 1.5.x and 3.x versions), and should work
for both source and DKMS Lustre builds.

Test-Parameters: nettypes=o2ib
Signed-off-by: Bruno Faccini <bruno.faccini@intel.com>
Change-Id: I82639f8392d5fe707a3b1a1719d53ab937e918b5
Reviewed-on: http://review.whamcloud.com/12686
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lnet/autoconf/lustre-lnet.m4