svn commit: r359185 - in head/sys: conf modules/cxgbe/iw_cxgbe modules/ibcore modules/ipoib modules/iser modules/lindebugfs modules/linuxkpi modules/mlx4 modules/mlx4en modules/mlx4ib modules/mlx5 ...
Konstantin Belousov
kib at FreeBSD.org
Fri Mar 20 21:07:05 UTC 2020
Author: kib
Date: Fri Mar 20 21:06:58 2020
New Revision: 359185
URL: https://svnweb.freebsd.org/changeset/base/359185
Log:
Introduce LINUXKPI_GENSRCS.
Centralize the list of generated files required by linuxkpi consumers,
into the common variable. This way, consumers that use the variable
are insulated from possible changes in the list.
Reviewed by: hselasky, imp
Sponsored by: Mellanox Technologies
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D24137
Modified:
head/sys/conf/kmod.mk
head/sys/modules/cxgbe/iw_cxgbe/Makefile
head/sys/modules/ibcore/Makefile
head/sys/modules/ipoib/Makefile
head/sys/modules/iser/Makefile
head/sys/modules/lindebugfs/Makefile
head/sys/modules/linuxkpi/Makefile
head/sys/modules/mlx4/Makefile
head/sys/modules/mlx4en/Makefile
head/sys/modules/mlx4ib/Makefile
head/sys/modules/mlx5/Makefile
head/sys/modules/mlx5en/Makefile
head/sys/modules/mlx5fpga_tools/Makefile
head/sys/modules/mlx5ib/Makefile
head/sys/modules/mlxfw/Makefile
head/sys/modules/mthca/Makefile
head/sys/modules/qlnx/qlnxe/Makefile
head/sys/modules/qlnx/qlnxev/Makefile
head/sys/modules/qlnx/qlnxr/Makefile
head/sys/modules/rdma/krping/Makefile
Modified: head/sys/conf/kmod.mk
==============================================================================
--- head/sys/conf/kmod.mk Fri Mar 20 20:09:00 2020 (r359184)
+++ head/sys/conf/kmod.mk Fri Mar 20 21:06:58 2020 (r359185)
@@ -94,6 +94,16 @@ WERROR?= -Wno-error
WERROR?= -Werror
.endif
+LINUXKPI_GENSRCS+= \
+ bus_if.h \
+ device_if.h \
+ pci_if.h \
+ pci_iov_if.h \
+ vnode_if.h \
+ usb_if.h \
+ opt_usb.h \
+ opt_stack.h
+
CFLAGS+= ${WERROR}
CFLAGS+= -D_KERNEL
CFLAGS+= -DKLD_MODULE
Modified: head/sys/modules/cxgbe/iw_cxgbe/Makefile
==============================================================================
--- head/sys/modules/cxgbe/iw_cxgbe/Makefile Fri Mar 20 20:09:00 2020 (r359184)
+++ head/sys/modules/cxgbe/iw_cxgbe/Makefile Fri Mar 20 21:06:58 2020 (r359185)
@@ -4,24 +4,17 @@ CXGBE= ${SRCTOP}/sys/dev/cxgbe
.PATH: ${CXGBE}/iw_cxgbe
KMOD= iw_cxgbe
-SRCS= bus_if.h
SRCS+= cm.c
SRCS+= cq.c
SRCS+= device.c
-SRCS+= device_if.h
SRCS+= ev.c
SRCS+= id_table.c
SRCS+= mem.c
-SRCS+= opt_inet.h
-SRCS+= opt_ktr.h
-SRCS+= opt_ofed.h
-SRCS+= opt_sched.h
-SRCS+= pci_if.h
-SRCS+= pcib_if.h
SRCS+= provider.c
SRCS+= qp.c
SRCS+= resource.c
-SRCS+= vnode_if.h
+SRCS+= ${LINUXKPI_GENSRCS}
+SRCS+= opt_inet.h opt_inet6.h opt_ktr.h opt_ofed.h opt_sched.h
CFLAGS+= -I${CXGBE} -I${SRCTOP}/sys/ofed/include -DLINUX_TYPES_DEFINED
CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi
Modified: head/sys/modules/ibcore/Makefile
==============================================================================
--- head/sys/modules/ibcore/Makefile Fri Mar 20 20:09:00 2020 (r359184)
+++ head/sys/modules/ibcore/Makefile Fri Mar 20 21:06:58 2020 (r359185)
@@ -2,8 +2,7 @@
.PATH: ${SRCTOP}/sys/ofed/drivers/infiniband/core
KMOD= ibcore
-SRCS= vnode_if.h device_if.h bus_if.h pci_if.h pci_iov_if.h \
- opt_inet.h opt_inet6.h \
+SRCS= \
ib_addr.c \
ib_agent.c \
ib_cache.c \
@@ -32,6 +31,8 @@ SRCS= vnode_if.h device_if.h bus_if.h pci_if.h pci_iov
ib_uverbs_main.c \
ib_uverbs_marshall.c \
ib_verbs.c
+SRCS+= ${LINUXKPI_GENSRCS}
+SRCS+= opt_inet.h opt_inet6.h
CFLAGS+= -I${SRCTOP}/sys/ofed/include
CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi
Modified: head/sys/modules/ipoib/Makefile
==============================================================================
--- head/sys/modules/ipoib/Makefile Fri Mar 20 20:09:00 2020 (r359184)
+++ head/sys/modules/ipoib/Makefile Fri Mar 20 21:06:58 2020 (r359185)
@@ -2,10 +2,10 @@
.PATH: ${SRCTOP}/sys/ofed/drivers/infiniband/ulp/ipoib
KMOD= ipoib
-SRCS= device_if.h bus_if.h vnode_if.h pci_if.h \
- opt_inet.h opt_inet6.h opt_ofed.h \
- ipoib_cm.c ipoib_ib.c ipoib_main.c \
+SRCS= ipoib_cm.c ipoib_ib.c ipoib_main.c \
ipoib_multicast.c ipoib_verbs.c
+SRCS+= ${LINUXKPI_GENSRCS}
+SRCS+= opt_inet.h opt_inet6.h opt_ofed.h
CFLAGS+= -I${SRCTOP}/sys/ofed/drivers/infiniband/ulp/ipoib
CFLAGS+= -I${SRCTOP}/sys/ofed/include
Modified: head/sys/modules/iser/Makefile
==============================================================================
--- head/sys/modules/iser/Makefile Fri Mar 20 20:09:00 2020 (r359184)
+++ head/sys/modules/iser/Makefile Fri Mar 20 21:06:58 2020 (r359185)
@@ -11,13 +11,9 @@ SRCS= icl_iser.c
SRCS+= iser_initiator.c
SRCS+= iser_memory.c
SRCS+= iser_verbs.c
-SRCS+= vnode_if.h
-SRCS+= opt_inet.h
-SRCS+= opt_inet6.h
-SRCS+= opt_cam.h
-SRCS+= bus_if.h
-SRCS+= device_if.h
-SRCS+= icl_conn_if.h
+
+SRCS+= ${LINUXKPI_GENSRCS}
+SRCS+= opt_inet.h opt_inet6.h opt_cam.h icl_conn_if.h
CFLAGS+= -I${SYSDIR}/
CFLAGS+= -I${SYSDIR}/ofed/include
Modified: head/sys/modules/lindebugfs/Makefile
==============================================================================
--- head/sys/modules/lindebugfs/Makefile Fri Mar 20 20:09:00 2020 (r359184)
+++ head/sys/modules/lindebugfs/Makefile Fri Mar 20 21:06:58 2020 (r359185)
@@ -3,9 +3,8 @@
.PATH: ${SRCTOP}/sys/compat/lindebugfs
KMOD= lindebugfs
-SRCS= vnode_if.h \
- device_if.h bus_if.h pci_if.h \
- lindebugfs.c
+SRCS= lindebugfs.c
+SRCS+= ${LINUXKPI_GENSRCS}
CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include
Modified: head/sys/modules/linuxkpi/Makefile
==============================================================================
--- head/sys/modules/linuxkpi/Makefile Fri Mar 20 20:09:00 2020 (r359184)
+++ head/sys/modules/linuxkpi/Makefile Fri Mar 20 21:06:58 2020 (r359185)
@@ -21,14 +21,7 @@ SRCS= linux_compat.c \
linux_usb.c \
linux_work.c
-SRCS+= bus_if.h \
- device_if.h \
- pci_if.h \
- pci_iov_if.h \
- vnode_if.h \
- usb_if.h \
- opt_usb.h \
- opt_stack.h
+SRCS+= ${LINUXKPI_GENSRCS}
CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include
CFLAGS+= -I${SRCTOP}/sys/contrib/ck/include
Modified: head/sys/modules/mlx4/Makefile
==============================================================================
--- head/sys/modules/mlx4/Makefile Fri Mar 20 20:09:00 2020 (r359184)
+++ head/sys/modules/mlx4/Makefile Fri Mar 20 21:06:58 2020 (r359185)
@@ -2,8 +2,7 @@
.PATH: ${SRCTOP}/sys/dev/mlx4/mlx4_core
KMOD= mlx4
-SRCS= device_if.h bus_if.h vnode_if.h pci_if.h pci_iov_if.h \
- opt_inet.h opt_inet6.h \
+SRCS= \
mlx4_alloc.c \
mlx4_catas.c \
mlx4_cmd.c \
@@ -24,6 +23,8 @@ SRCS= device_if.h bus_if.h vnode_if.h pci_if.h pci_iov
mlx4_sense.c \
mlx4_srq.c \
mlx4_resource_tracker.c
+SRCS+= ${LINUXKPI_GENSRCS}
+SRCS+= opt_inet.h opt_inet6.h
CFLAGS+= -I${SRCTOP}/sys/ofed/include
CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi
Modified: head/sys/modules/mlx4en/Makefile
==============================================================================
--- head/sys/modules/mlx4en/Makefile Fri Mar 20 20:09:00 2020 (r359184)
+++ head/sys/modules/mlx4en/Makefile Fri Mar 20 21:06:58 2020 (r359185)
@@ -2,8 +2,7 @@
.PATH: ${SRCTOP}/sys/dev/mlx4/mlx4_en
KMOD= mlx4en
-SRCS= device_if.h bus_if.h pci_if.h pci_iov_if.h vnode_if.h \
- opt_inet.h opt_inet6.h \
+SRCS= \
mlx4_en_cq.c \
mlx4_en_main.c \
mlx4_en_netdev.c \
@@ -11,6 +10,8 @@ SRCS= device_if.h bus_if.h pci_if.h pci_iov_if.h vnode
mlx4_en_resources.c \
mlx4_en_rx.c \
mlx4_en_tx.c
+SRCS+= ${LINUXKPI_GENSRCS}
+SRCS+= opt_inet.h opt_inet6.h
CFLAGS+= -I${SRCTOP}/sys/ofed/include
CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include
Modified: head/sys/modules/mlx4ib/Makefile
==============================================================================
--- head/sys/modules/mlx4ib/Makefile Fri Mar 20 20:09:00 2020 (r359184)
+++ head/sys/modules/mlx4ib/Makefile Fri Mar 20 21:06:58 2020 (r359185)
@@ -2,8 +2,7 @@
.PATH: ${SRCTOP}/sys/dev/mlx4/mlx4_ib
KMOD= mlx4ib
-SRCS= device_if.h bus_if.h vnode_if.h pci_if.h pci_iov_if.h \
- opt_inet.h opt_inet6.h \
+SRCS= \
mlx4_ib_alias_GUID.c \
mlx4_ib_mcg.c \
mlx4_ib_sysfs.c \
@@ -17,6 +16,8 @@ SRCS= device_if.h bus_if.h vnode_if.h pci_if.h pci_iov
mlx4_ib_srq.c \
mlx4_ib_wc.c \
mlx4_ib_cm.c
+SRCS+= ${LINUXKPI_GENSRCS}
+SRCS+= opt_inet.h opt_inet6.h
CFLAGS+= -I${SRCTOP}/sys/ofed/include
CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi
Modified: head/sys/modules/mlx5/Makefile
==============================================================================
--- head/sys/modules/mlx5/Makefile Fri Mar 20 20:09:00 2020 (r359184)
+++ head/sys/modules/mlx5/Makefile Fri Mar 20 21:06:58 2020 (r359185)
@@ -33,9 +33,9 @@ mlx5_uar.c \
mlx5_vport.c \
mlx5_vsc.c \
mlx5_wq.c \
-mlx5_gid.c \
-device_if.h bus_if.h vnode_if.h pci_if.h pci_iov_if.h \
-opt_inet.h opt_inet6.h opt_rss.h opt_ratelimit.h
+mlx5_gid.c
+SRCS+= ${LINUXKPI_GENSRCS}
+SRCS+= opt_inet.h opt_inet6.h opt_rss.h opt_ratelimit.h
CFLAGS+= -I${SRCTOP}/sys/ofed/include
CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include
Modified: head/sys/modules/mlx5en/Makefile
==============================================================================
--- head/sys/modules/mlx5en/Makefile Fri Mar 20 20:09:00 2020 (r359184)
+++ head/sys/modules/mlx5en/Makefile Fri Mar 20 21:06:58 2020 (r359185)
@@ -12,10 +12,9 @@ mlx5_en_hw_tls.c \
mlx5_en_rx.c \
mlx5_en_rl.c \
mlx5_en_txrx.c \
-mlx5_en_port_buffer.c \
-device_if.h bus_if.h vnode_if.h pci_if.h pci_iov_if.h \
-opt_inet.h opt_inet6.h opt_rss.h opt_ratelimit.h \
-opt_kern_tls.h
+mlx5_en_port_buffer.c
+SRCS+= ${LINUXKPI_GENSRCS}
+SRCS+= opt_inet.h opt_inet6.h opt_rss.h opt_ratelimit.h opt_kern_tls.h
.if defined(HAVE_PER_CQ_EVENT_PACKET)
CFLAGS+= -DHAVE_PER_CQ_EVENT_PACKET
Modified: head/sys/modules/mlx5fpga_tools/Makefile
==============================================================================
--- head/sys/modules/mlx5fpga_tools/Makefile Fri Mar 20 20:09:00 2020 (r359184)
+++ head/sys/modules/mlx5fpga_tools/Makefile Fri Mar 20 21:06:58 2020 (r359185)
@@ -6,9 +6,8 @@ SRCS= \
mlx5fpga_tools_main.c \
mlx5fpga_tools_char.c
-SRCS+= \
- device_if.h bus_if.h vnode_if.h pci_if.h pci_iov_if.h \
- opt_inet.h opt_inet6.h opt_rss.h opt_ratelimit.h
+SRCS+= ${LINUXKPI_GENSRCS}
+SRCS+= opt_inet.h opt_inet6.h opt_rss.h opt_ratelimit.h
CFLAGS+= -I${SRCTOP}/sys/ofed/include
CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include
Modified: head/sys/modules/mlx5ib/Makefile
==============================================================================
--- head/sys/modules/mlx5ib/Makefile Fri Mar 20 20:09:00 2020 (r359184)
+++ head/sys/modules/mlx5ib/Makefile Fri Mar 20 21:06:58 2020 (r359185)
@@ -14,9 +14,9 @@ mlx5_ib_mem.c \
mlx5_ib_mr.c \
mlx5_ib_qp.c \
mlx5_ib_srq.c \
-mlx5_ib_virt.c \
-device_if.h bus_if.h vnode_if.h pci_if.h pci_iov_if.h \
-opt_inet.h opt_inet6.h opt_ratelimit.h
+mlx5_ib_virt.c
+SRCS+= ${LINUXKPI_GENSRCS}
+SRCS+= opt_inet.h opt_inet6.h opt_ratelimit.h
CFLAGS+= -I${SRCTOP}/sys/ofed/include
CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi
Modified: head/sys/modules/mlxfw/Makefile
==============================================================================
--- head/sys/modules/mlxfw/Makefile Fri Mar 20 20:09:00 2020 (r359184)
+++ head/sys/modules/mlxfw/Makefile Fri Mar 20 21:06:58 2020 (r359185)
@@ -5,8 +5,8 @@ KMOD=mlxfw
SRCS= \
mlxfw_fsm.c \
mlxfw_mfa2.c \
-mlxfw_mfa2_tlv_multi.c \
-device_if.h bus_if.h vnode_if.h pci_if.h
+mlxfw_mfa2_tlv_multi.c
+SRCS+= ${LINUXKPI_GENSRCS}
CFLAGS+= \
-I${SRCTOP}/sys/ofed/include \
Modified: head/sys/modules/mthca/Makefile
==============================================================================
--- head/sys/modules/mthca/Makefile Fri Mar 20 20:09:00 2020 (r359184)
+++ head/sys/modules/mthca/Makefile Fri Mar 20 21:06:58 2020 (r359185)
@@ -20,9 +20,9 @@ mthca_provider.c \
mthca_qp.c \
mthca_reset.c \
mthca_srq.c \
-mthca_uar.c \
-device_if.h bus_if.h vnode_if.h pci_if.h \
- opt_inet.h opt_inet6.h
+mthca_uar.c
+SRCS+= ${LINUXKPI_GENSRCS}
+SRCS+= opt_inet.h opt_inet6.h
CFLAGS+= -I${SRCTOP}/sys/ofed/include
CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi
Modified: head/sys/modules/qlnx/qlnxe/Makefile
==============================================================================
--- head/sys/modules/qlnx/qlnxe/Makefile Fri Mar 20 20:09:00 2020 (r359184)
+++ head/sys/modules/qlnx/qlnxe/Makefile Fri Mar 20 21:06:58 2020 (r359185)
@@ -57,15 +57,10 @@ SRCS+=ecore_ooo.c
SRCS+=ecore_ll2.c
SRCS+=qlnx_rdma.c
-
SRCS+=qlnx_ioctl.c
SRCS+=qlnx_os.c
-SRCS+= device_if.h
-SRCS+= bus_if.h
-SRCS+= pci_if.h
-SRCS+= pci_iov_if.h
-
+SRCS+= ${LINUXKPI_GENSRCS}
.include <bsd.kmod.mk>
Modified: head/sys/modules/qlnx/qlnxev/Makefile
==============================================================================
--- head/sys/modules/qlnx/qlnxev/Makefile Fri Mar 20 20:09:00 2020 (r359184)
+++ head/sys/modules/qlnx/qlnxev/Makefile Fri Mar 20 21:06:58 2020 (r359185)
@@ -51,10 +51,7 @@ SRCS+=ecore_vf.c
SRCS+=qlnx_ioctl.c
SRCS+=qlnx_os.c
-SRCS+= device_if.h
-SRCS+= bus_if.h
-SRCS+= pci_if.h
-SRCS+= pci_iov_if.h
+SRCS+= ${LINUXKPI_GENSRCS}
.include <bsd.kmod.mk>
Modified: head/sys/modules/qlnx/qlnxr/Makefile
==============================================================================
--- head/sys/modules/qlnx/qlnxr/Makefile Fri Mar 20 20:09:00 2020 (r359184)
+++ head/sys/modules/qlnx/qlnxr/Makefile Fri Mar 20 21:06:58 2020 (r359185)
@@ -41,11 +41,12 @@ OFEDDIR=${SRCTOP}/sys
ETHDRVR=${SRCTOP}/sys/dev/qlnx/qlnxe
KMOD= qlnxr
-SRCS= device_if.h bus_if.h vnode_if.h pci_if.h \
- opt_inet.h opt_inet6.h \
+SRCS= \
qlnxr_os.c\
qlnxr_cm.c\
qlnxr_verbs.c
+SRCS+= ${LINUXKPI_GENSRCS}
+SRCS+= opt_inet.h opt_inet6.h
.include <bsd.kmod.mk>
Modified: head/sys/modules/rdma/krping/Makefile
==============================================================================
--- head/sys/modules/rdma/krping/Makefile Fri Mar 20 20:09:00 2020 (r359184)
+++ head/sys/modules/rdma/krping/Makefile Fri Mar 20 21:06:58 2020 (r359185)
@@ -3,7 +3,7 @@
KMOD= krping
SRCS= krping.c krping_dev.c getopt.c
-SRCS+= bus_if.h device_if.h pci_if.h pci_iov_if.h pcib_if.h vnode_if.h
+SRCS+= ${LINUXKPI_GENSRCS}
SRCS+= opt_sched.h opt_inet.h opt_inet6.h
CFLAGS+= -I${SRCTOP}/sys/ofed/include
CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi
More information about the svn-src-head
mailing list