summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2016-05-27 11:37:56 +0000
committertrasz <trasz@FreeBSD.org>2016-05-27 11:37:56 +0000
commit3bf8d73cb60a763e1bac1c4887d759dd24dc420e (patch)
tree2e5fe422dae7cfd14516c358429ad0be2c7f9d56
parent5d1d7c645ab4dd98d2feed69bdff0a58256b7ccb (diff)
downloadFreeBSD-src-3bf8d73cb60a763e1bac1c4887d759dd24dc420e.zip
FreeBSD-src-3bf8d73cb60a763e1bac1c4887d759dd24dc420e.tar.gz
Build iscsi(4) with ICL_KERNEL_PROXY when building with WITH_OFED.
MFC after: 1 month Sponsored by: The FreeBSD Foundation
-rw-r--r--sys/modules/iscsi/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/modules/iscsi/Makefile b/sys/modules/iscsi/Makefile
index 1c88363..33f3cbf 100644
--- a/sys/modules/iscsi/Makefile
+++ b/sys/modules/iscsi/Makefile
@@ -1,5 +1,8 @@
# $FreeBSD$
+SYSDIR?=${.CURDIR}/../..
+.include "${SYSDIR}/conf/kern.opts.mk"
+
.PATH: ${.CURDIR}/../../dev/iscsi/
KMOD= iscsi
@@ -13,7 +16,9 @@ SRCS+= device_if.h
SRCS+= icl_conn_if.c
SRCS+= icl_conn_if.h
-#CFLAGS+=-DICL_KERNEL_PROXY
+.if ${MK_OFED} != "no" || defined(ALL_MODULES)
+CFLAGS+=-DICL_KERNEL_PROXY
+.endif
MFILES= kern/bus_if.m kern/device_if.m dev/iscsi/icl_conn_if.m
OpenPOWER on IntegriCloud