2017-08-23 12:09:37 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
.PATH: ${SRCTOP}/sys/dev/mlx5/mlx5_ib
|
|
|
|
|
|
|
|
KMOD=mlx5ib
|
|
|
|
SRCS= \
|
|
|
|
mlx5_ib_ah.c \
|
2018-03-08 11:23:14 +00:00
|
|
|
mlx5_ib_cong.c \
|
2017-08-23 12:09:37 +00:00
|
|
|
mlx5_ib_cq.c \
|
2021-06-16 13:02:00 +00:00
|
|
|
mlx5_ib_devx.c \
|
2017-08-23 12:09:37 +00:00
|
|
|
mlx5_ib_doorbell.c \
|
2017-11-10 15:02:17 +00:00
|
|
|
mlx5_ib_gsi.c \
|
2017-08-23 12:09:37 +00: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 21:06:58 +00:00
|
|
|
mlx5_ib_virt.c
|
|
|
|
SRCS+= ${LINUXKPI_GENSRCS}
|
2022-02-03 16:44:11 +00:00
|
|
|
SRCS+= opt_inet.h opt_inet6.h opt_ratelimit.h opt_rss.h
|
2017-08-23 12:09:37 +00:00
|
|
|
|
|
|
|
CFLAGS+= -I${SRCTOP}/sys/ofed/include
|
2017-11-10 15:02:17 +00:00
|
|
|
CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi
|
2022-09-23 21:18:45 +00:00
|
|
|
CFLAGS+= ${LINUXKPI_INCLUDES}
|
2017-11-10 15:02:17 +00:00
|
|
|
CFLAGS+= -DCONFIG_INFINIBAND_USER_MEM
|
2017-08-23 12:09:37 +00:00
|
|
|
|
2018-12-05 14:11:20 +00:00
|
|
|
.if defined(CONFIG_BUILD_FPGA)
|
|
|
|
CFLAGS+= -DCONFIG_MLX5_FPGA
|
|
|
|
.endif
|
|
|
|
|
2017-08-23 12:09:37 +00:00
|
|
|
.include <bsd.kmod.mk>
|
|
|
|
|
|
|
|
CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}
|