isert: Make ofed detection logic more robust with regard to non-standard installations

Signed-off-by: Yan Burman <yanb@mellanox.com>

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/iser@5576 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Yan Burman
2014-06-08 14:06:53 +00:00
parent 2d2b75b49b
commit 771c980cd3

View File

@@ -54,7 +54,7 @@ all: include/iscsi_scst_itf_ver.h progs mods
ISER_SYMVERS:=$(KMOD)/Module.symvers
OFED_CFLAGS:=
MLNX_OFED:=$(shell if ofed_info | grep MLNX_OFED >/dev/null 2>/dev/null; then echo true; else echo false; fi)
MLNX_OFED:=$(shell if ofed_info -s | grep MLNX >/dev/null 2>/dev/null; then echo true; else echo false; fi)
ifeq ($(MLNX_OFED),true)
# Whether MLNX_OFED for ubuntu has been installed