2017-08-23 08:09:37 -04:00
|
|
|
# $FreeBSD$
|
|
|
|
|
.PATH: ${SRCTOP}/sys/dev/mlx5/mlx5_ib
|
|
|
|
|
|
|
|
|
|
KMOD=mlx5ib
|
|
|
|
|
SRCS= \
|
|
|
|
|
mlx5_ib_ah.c \
|
2018-03-08 06:23:14 -05:00
|
|
|
mlx5_ib_cong.c \
|
2017-08-23 08:09:37 -04:00
|
|
|
mlx5_ib_cq.c \
|
|
|
|
|
mlx5_ib_doorbell.c \
|
2017-11-10 10:02:17 -05:00
|
|
|
mlx5_ib_gsi.c \
|
2017-08-23 08:09:37 -04:00
|
|
|
mlx5_ib_mad.c \
|
|
|
|
|
mlx5_ib_main.c \
|
|
|
|
|
mlx5_ib_mem.c \
|
|
|
|
|
mlx5_ib_mr.c \
|
|
|
|
|
mlx5_ib_qp.c \
|
|
|
|
|
mlx5_ib_srq.c \
|
2020-03-20 17:06:58 -04:00
|
|
|
mlx5_ib_virt.c
|
|
|
|
|
SRCS+= ${LINUXKPI_GENSRCS}
|
|
|
|
|
SRCS+= opt_inet.h opt_inet6.h opt_ratelimit.h
|
2017-08-23 08:09:37 -04:00
|
|
|
|
|
|
|
|
CFLAGS+= -I${SRCTOP}/sys/ofed/include
|
2017-11-10 10:02:17 -05:00
|
|
|
CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi
|
2017-08-23 08:09:37 -04:00
|
|
|
CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include
|
2017-11-10 10:02:17 -05:00
|
|
|
CFLAGS+= -DCONFIG_INFINIBAND_USER_MEM
|
2017-08-23 08:09:37 -04:00
|
|
|
|
2018-12-05 09:11:20 -05:00
|
|
|
.if defined(CONFIG_BUILD_FPGA)
|
|
|
|
|
CFLAGS+= -DCONFIG_MLX5_FPGA
|
|
|
|
|
.endif
|
|
|
|
|
|
2017-08-23 08:09:37 -04:00
|
|
|
.include <bsd.kmod.mk>
|
|
|
|
|
|
|
|
|
|
CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}
|