514fb38721
While for in-kernel we already have LINUXKPI_INCLUDES in kern.pre.mk for kmod builds we've not had a common define to use leading to various spellings of include paths. In order for the include list to be expanded more easily in the future, e.g., adding the "dummy" includes (for all) and to harmonize code, duplicate LINUXKPI_INCLUDES to kmod.mk and use it for all module Makefiles. MFC after: 1 week Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D36683
34 lines
672 B
Makefile
34 lines
672 B
Makefile
# $FreeBSD$
|
|
.PATH: ${SRCTOP}/sys/dev/mlx5/mlx5_ib
|
|
|
|
KMOD=mlx5ib
|
|
SRCS= \
|
|
mlx5_ib_ah.c \
|
|
mlx5_ib_cong.c \
|
|
mlx5_ib_cq.c \
|
|
mlx5_ib_devx.c \
|
|
mlx5_ib_doorbell.c \
|
|
mlx5_ib_gsi.c \
|
|
mlx5_ib_mad.c \
|
|
mlx5_ib_main.c \
|
|
mlx5_ib_mem.c \
|
|
mlx5_ib_mr.c \
|
|
mlx5_ib_qp.c \
|
|
mlx5_ib_srq.c \
|
|
mlx5_ib_virt.c
|
|
SRCS+= ${LINUXKPI_GENSRCS}
|
|
SRCS+= opt_inet.h opt_inet6.h opt_ratelimit.h opt_rss.h
|
|
|
|
CFLAGS+= -I${SRCTOP}/sys/ofed/include
|
|
CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi
|
|
CFLAGS+= ${LINUXKPI_INCLUDES}
|
|
CFLAGS+= -DCONFIG_INFINIBAND_USER_MEM
|
|
|
|
.if defined(CONFIG_BUILD_FPGA)
|
|
CFLAGS+= -DCONFIG_MLX5_FPGA
|
|
.endif
|
|
|
|
.include <bsd.kmod.mk>
|
|
|
|
CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}
|