aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/mlx4ib
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2015-01-17 16:36:39 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2015-01-17 16:36:39 +0000
commite982e5c5610e41b669d89ce488d65e68f311159d (patch)
treefebade823aada1e5e12820542c4cd10192a03533 /sys/modules/mlx4ib
parent84b170d298ab13930bcf7da4e403ba1f60a29645 (diff)
downloadsrc-e982e5c5610e41b669d89ce488d65e68f311159d.tar.gz
src-e982e5c5610e41b669d89ce488d65e68f311159d.zip
Start importing the basic OFED linux compatibility layer changes made
by dumbbell@ to be able to compile this layer as a dependency module. Clean up some Makefiles and remove the no longer used OFED define. Currently only i386 and amd64 targets are supported. MFC after: 1 month Sponsored by: Mellanox Technologies
Notes
Notes: svn path=/head/; revision=277302
Diffstat (limited to 'sys/modules/mlx4ib')
-rw-r--r--sys/modules/mlx4ib/Makefile14
1 files changed, 6 insertions, 8 deletions
diff --git a/sys/modules/mlx4ib/Makefile b/sys/modules/mlx4ib/Makefile
index 007eeece09d1..57592bc995cf 100644
--- a/sys/modules/mlx4ib/Makefile
+++ b/sys/modules/mlx4ib/Makefile
@@ -2,18 +2,16 @@
.PATH: ${.CURDIR}/../../ofed/drivers/infiniband/hw/mlx4
.PATH: ${.CURDIR}/../../ofed/include/linux
-KMOD = mlx4ib
-SRCS = device_if.h bus_if.h pci_if.h vnode_if.h
-SRCS+= linux_compat.c linux_radix.c linux_idr.c
-SRCS+= alias_GUID.c mcg.c sysfs.c ah.c cq.c doorbell.c mad.c main.c mr.c qp.c srq.c wc.c cm.c
-SRCS+= opt_inet.h opt_inet6.h
+KMOD= mlx4ib
+SRCS= device_if.h bus_if.h vnode_if.h pci_if.h \
+ opt_inet.h opt_inet6.h \
+ alias_GUID.c mcg.c sysfs.c ah.c cq.c \
+ doorbell.c mad.c main.c mr.c qp.c srq.c wc.c cm.c
-#CFLAGS+= -I${.CURDIR}/../../ofed/include/
-#CFLAGS+= -I${.CURDIR}/../../../../include
CFLAGS+= -I${.CURDIR}/../../ofed/drivers/infiniband/hw/mlx4
CFLAGS+= -I${.CURDIR}/../../ofed/include/
CFLAGS+= -DCONFIG_INFINIBAND_USER_MEM
-CFLAGS+= -DINET6 -DINET -DOFED
+CFLAGS+= -DINET6 -DINET
CFLAGS+= -fms-extensions
.include <bsd.kmod.mk>