aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/mthca
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2018-02-13 17:04:34 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2018-02-13 17:04:34 +0000
commit33ec1ccbae880855a4aa9e221ba8512da70e541e (patch)
tree5eac4652787d7bfa195c96d4d2b99f65f84b6202 /sys/modules/mthca
parent3cdd74bb3c03447d87f69c8728f5cc532908bac7 (diff)
Notes
Diffstat (limited to 'sys/modules/mthca')
-rw-r--r--sys/modules/mthca/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/sys/modules/mthca/Makefile b/sys/modules/mthca/Makefile
new file mode 100644
index 000000000000..ef436cc96355
--- /dev/null
+++ b/sys/modules/mthca/Makefile
@@ -0,0 +1,35 @@
+# $FreeBSD$
+.PATH: ${SRCTOP}/sys/dev/mthca
+
+KMOD= mthca
+SRCS= \
+mthca_allocator.c \
+mthca_av.c \
+mthca_catas.c \
+mthca_cmd.c \
+mthca_cq.c \
+mthca_eq.c \
+mthca_mad.c \
+mthca_main.c \
+mthca_mcg.c \
+mthca_memfree.c \
+mthca_mr.c \
+mthca_pd.c \
+mthca_profile.c \
+mthca_provider.c \
+mthca_qp.c \
+mthca_reset.c \
+mthca_srq.c \
+mthca_uar.c \
+device_if.h bus_if.h vnode_if.h pci_if.h \
+ opt_inet.h opt_inet6.h
+
+CFLAGS+= -I${SRCTOP}/sys/ofed/include
+CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi
+CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include
+CFLAGS+= -DCONFIG_INFINIBAND_USER_MEM
+CFLAGS+= -DINET6 -DINET
+
+.include <bsd.kmod.mk>
+
+CFLAGS+= -Wno-cast-qual -Wno-pointer-arith