1.PATH: ${SRCTOP}/sys/dev/mlx5/mlx5_core \ 2 ${SRCTOP}/sys/dev/mlx5/mlx5_lib \ 3 ${SRCTOP}/sys/dev/mlx5/mlx5_fpga 4 5KMOD=mlx5 6SRCS= \ 7mlx5_alloc.c \ 8mlx5_cmd.c \ 9mlx5_cq.c \ 10mlx5_diag_cnt.c \ 11mlx5_diagnostics.c \ 12mlx5_eq.c \ 13mlx5_eswitch.c \ 14mlx5_fc_cmd.c \ 15mlx5_fs_cmd.c \ 16mlx5_fs_tcp.c \ 17mlx5_fs_tree.c \ 18mlx5_fs_counters.c \ 19mlx5_fw.c \ 20mlx5_fwdump.c \ 21mlx5_health.c \ 22mlx5_mad.c \ 23mlx5_main.c \ 24mlx5_mcg.c \ 25mlx5_mpfs.c \ 26mlx5_mr.c \ 27mlx5_pagealloc.c \ 28mlx5_pd.c \ 29mlx5_port.c \ 30mlx5_qp.c \ 31mlx5_rl.c \ 32mlx5_srq.c \ 33mlx5_tls.c \ 34mlx5_transobj.c \ 35mlx5_uar.c \ 36mlx5_vport.c \ 37mlx5_vsc.c \ 38mlx5_wq.c \ 39mlx5_gid.c 40SRCS+= ${LINUXKPI_GENSRCS} 41SRCS+= opt_inet.h opt_inet6.h opt_rss.h opt_ratelimit.h 42 43CFLAGS+= -I${SRCTOP}/sys/ofed/include 44CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi 45CFLAGS+= ${LINUXKPI_INCLUDES} 46 47.if defined(CONFIG_BUILD_FPGA) 48SRCS+= \ 49 mlx5fpga_cmd.c \ 50 mlx5fpga_core.c \ 51 mlx5fpga_sdk.c \ 52 mlx5fpga_trans.c \ 53 mlx5fpga_xfer.c \ 54 mlx5fpga_ipsec.c 55.endif 56 57EXPORT_SYMS= YES 58 59.include <bsd.kmod.mk> 60 61CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS} 62