2015-11-10 12:20:22 +00:00
|
|
|
# $FreeBSD$
|
2018-12-05 14:11:20 +00:00
|
|
|
.PATH: ${SRCTOP}/sys/dev/mlx5/mlx5_core \
|
|
|
|
${SRCTOP}/sys/dev/mlx5/mlx5_lib \
|
|
|
|
${SRCTOP}/sys/dev/mlx5/mlx5_fpga
|
2015-11-10 12:20:22 +00:00
|
|
|
|
|
|
|
KMOD=mlx5
|
|
|
|
SRCS= \
|
|
|
|
mlx5_alloc.c \
|
|
|
|
mlx5_cmd.c \
|
|
|
|
mlx5_cq.c \
|
2017-01-27 10:03:50 +00:00
|
|
|
mlx5_diagnostics.c \
|
2015-11-10 12:20:22 +00:00
|
|
|
mlx5_eq.c \
|
2020-03-18 22:30:56 +00:00
|
|
|
mlx5_eswitch.c \
|
2017-11-10 09:49:08 +00:00
|
|
|
mlx5_fs_cmd.c \
|
|
|
|
mlx5_fs_tree.c \
|
2015-11-10 12:20:22 +00:00
|
|
|
mlx5_fw.c \
|
2018-03-08 15:21:56 +00:00
|
|
|
mlx5_fwdump.c \
|
2015-11-10 12:20:22 +00:00
|
|
|
mlx5_health.c \
|
|
|
|
mlx5_mad.c \
|
|
|
|
mlx5_main.c \
|
|
|
|
mlx5_mcg.c \
|
2019-10-02 09:22:22 +00:00
|
|
|
mlx5_mpfs.c \
|
2015-11-10 12:20:22 +00:00
|
|
|
mlx5_mr.c \
|
|
|
|
mlx5_pagealloc.c \
|
|
|
|
mlx5_pd.c \
|
|
|
|
mlx5_port.c \
|
|
|
|
mlx5_qp.c \
|
2018-05-29 14:04:57 +00:00
|
|
|
mlx5_rl.c \
|
2015-11-10 12:20:22 +00:00
|
|
|
mlx5_srq.c \
|
2019-12-05 15:16:19 +00:00
|
|
|
mlx5_tls.c \
|
2015-11-10 12:20:22 +00:00
|
|
|
mlx5_transobj.c \
|
|
|
|
mlx5_uar.c \
|
|
|
|
mlx5_vport.c \
|
2018-03-08 11:59:47 +00:00
|
|
|
mlx5_vsc.c \
|
2015-11-10 12:20:22 +00:00
|
|
|
mlx5_wq.c \
|
2020-03-20 21:06:58 +00:00
|
|
|
mlx5_gid.c
|
|
|
|
SRCS+= ${LINUXKPI_GENSRCS}
|
|
|
|
SRCS+= opt_inet.h opt_inet6.h opt_rss.h opt_ratelimit.h
|
2015-11-10 12:20:22 +00:00
|
|
|
|
2017-03-04 10:10:17 +00:00
|
|
|
CFLAGS+= -I${SRCTOP}/sys/ofed/include
|
|
|
|
CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include
|
2015-11-10 12:20:22 +00:00
|
|
|
|
2018-12-05 14:11:20 +00:00
|
|
|
.if defined(CONFIG_BUILD_FPGA)
|
|
|
|
SRCS+= \
|
|
|
|
mlx5fpga_cmd.c \
|
|
|
|
mlx5fpga_core.c \
|
|
|
|
mlx5fpga_sdk.c \
|
|
|
|
mlx5fpga_trans.c \
|
|
|
|
mlx5fpga_xfer.c \
|
|
|
|
mlx5fpga_ipsec.c
|
|
|
|
.endif
|
|
|
|
|
2015-11-10 12:20:22 +00:00
|
|
|
.include <bsd.kmod.mk>
|
|
|
|
|
|
|
|
CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}
|