Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 May 2016 11:37:56 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r300838 - head/sys/modules/iscsi
Message-ID:  <201605271137.u4RBbu69041232@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Fri May 27 11:37:56 2016
New Revision: 300838
URL: https://svnweb.freebsd.org/changeset/base/300838

Log:
  Build iscsi(4) with ICL_KERNEL_PROXY when building with WITH_OFED.
  
  MFC after:	1 month
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/modules/iscsi/Makefile

Modified: head/sys/modules/iscsi/Makefile
==============================================================================
--- head/sys/modules/iscsi/Makefile	Fri May 27 11:37:02 2016	(r300837)
+++ head/sys/modules/iscsi/Makefile	Fri May 27 11:37:56 2016	(r300838)
@@ -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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605271137.u4RBbu69041232>