sys/modules: fix standalone build for multiple modules
Multiple Makefile miss opt_*.h and *_if.h header file. We fix it by running make in sys/modules to build all modules. Approved by: lwhsu (mentor), markj (mentor) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D52062
This commit is contained in:
@@ -3,6 +3,6 @@
|
||||
KMOD= e6000sw
|
||||
SRCS= e6000sw.c
|
||||
|
||||
SRCS+= bus_if.h etherswitch_if.h mdio_if.h miibus_if.h ofw_bus_if.h opt_platform.h
|
||||
SRCS+= bus_if.h device_if.h etherswitch_if.h mdio_if.h miibus_if.h ofw_bus_if.h opt_platform.h
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
KMOD = etherswitch
|
||||
|
||||
SRCS= etherswitch.c
|
||||
SRCS+= mdio_if.h miibus_if.h etherswitch_if.h etherswitch_if.c
|
||||
SRCS+= bus_if.h device_if.h mdio_if.h miibus_if.h etherswitch_if.h etherswitch_if.c
|
||||
CFLAGS+= -I${SRCTOP}/sys/dev/etherswitch
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
KMOD= evdev
|
||||
SRCS= cdev.c evdev.c evdev_mt.c evdev_utils.c
|
||||
SRCS+= opt_evdev.h bus_if.h device_if.h
|
||||
SRCS+= opt_evdev.h opt_kbd.h bus_if.h device_if.h
|
||||
|
||||
EXPORT_SYMS= YES
|
||||
|
||||
|
||||
@@ -10,6 +10,8 @@ SRCS+= \
|
||||
gpio_if.h \
|
||||
gpiobus_if.h
|
||||
|
||||
SRCS+= opt_acpi.h opt_platform.h
|
||||
|
||||
CFLAGS+= -I. -I${SRCTOP}/sys/dev/gpio/
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
||||
@@ -40,5 +40,5 @@ SRCS= gve_main.c \
|
||||
gve_tx_dqo.c \
|
||||
gve_sysctl.c
|
||||
SRCS+= device_if.h bus_if.h pci_if.h
|
||||
|
||||
SRCS+= opt_inet6.h
|
||||
.include <bsd.kmod.mk>
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
KMOD= if_infiniband
|
||||
SRCS= if_infiniband.c \
|
||||
opt_inet.h \
|
||||
opt_inet6.h
|
||||
opt_inet6.h \
|
||||
opt_kbd.h
|
||||
|
||||
EXPORT_SYMS= YES
|
||||
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
|
||||
KMOD= if_vlan
|
||||
SRCS= if_vlan.c
|
||||
SRCS+= opt_inet.h opt_inet6.h opt_kern_tls.h opt_vlan.h opt_ratelimit.h
|
||||
SRCS+= opt_inet.h opt_inet6.h opt_ipsec.h opt_kern_tls.h opt_vlan.h opt_ratelimit.h
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
||||
@@ -31,6 +31,7 @@ SRCS= linux_dummy_machdep.c \
|
||||
opt_ktrace.h \
|
||||
opt_inet6.h \
|
||||
opt_posix.h \
|
||||
opt_usb.h \
|
||||
bus_if.h \
|
||||
device_if.h \
|
||||
vnode_if.h \
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
.PATH: ${SRCTOP}/sys/dev/md
|
||||
|
||||
KMOD= geom_md
|
||||
SRCS= md.c opt_md.h opt_geom.h opt_rootdevname.h vnode_if.h
|
||||
SRCS= bus_if.h device_if.h md.c opt_md.h opt_geom.h opt_rootdevname.h vnode_if.h
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
KMOD = miiproxy
|
||||
|
||||
SRCS= miiproxy.c
|
||||
SRCS+= mdio_if.h miibus_if.h
|
||||
SRCS+= bus_if.h mdio_if.h miibus_if.h opt_platform.h
|
||||
CFLAGS+= -I${SRCTOP}/sys/dev/etherswitch
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
||||
@@ -46,7 +46,7 @@ mlx5_ipsec_offload.c \
|
||||
mlx5_ipsec.c \
|
||||
mlx5_ipsec_rxtx.c
|
||||
SRCS+= ${LINUXKPI_GENSRCS}
|
||||
SRCS+= opt_inet.h opt_inet6.h opt_rss.h opt_ratelimit.h
|
||||
SRCS+= opt_inet.h opt_inet6.h opt_ipsec.h opt_rss.h opt_ratelimit.h
|
||||
|
||||
CFLAGS+= -I${SRCTOP}/sys/ofed/include
|
||||
CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi
|
||||
|
||||
@@ -15,7 +15,7 @@ mlx5_en_rl.c \
|
||||
mlx5_en_txrx.c \
|
||||
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
|
||||
SRCS+= opt_inet.h opt_inet6.h opt_ipsec.h opt_rss.h opt_ratelimit.h opt_kern_tls.h
|
||||
|
||||
.if defined(HAVE_PER_CQ_EVENT_PACKET)
|
||||
CFLAGS+= -DHAVE_PER_CQ_EVENT_PACKET
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
KMOD= ng_ksocket
|
||||
SRCS= ng_ksocket.c
|
||||
|
||||
SRCS+= opt_inet6.h
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
||||
@@ -10,4 +10,7 @@ SRCS= nvmf.c \
|
||||
nvmf_qpair.c \
|
||||
nvmf_sim.c
|
||||
|
||||
SRCS+= bus_if.h device_if.h
|
||||
SRCS+= opt_cam.h
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
||||
@@ -49,6 +49,7 @@ SRCS+=ecore_vf.c
|
||||
|
||||
SRCS+=qlnx_ioctl.c
|
||||
SRCS+=qlnx_os.c
|
||||
SRCS+=opt_inet.h
|
||||
|
||||
SRCS+= ${LINUXKPI_GENSRCS}
|
||||
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
|
||||
KMOD= uinput
|
||||
SRCS= uinput.c
|
||||
SRCS+= opt_evdev.h
|
||||
SRCS+= opt_evdev.h opt_kbd.h
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
||||
@@ -29,6 +29,6 @@
|
||||
KMOD = usie
|
||||
SRCS = if_usie.c
|
||||
SRCS += opt_bus.h opt_usb.h device_if.h bus_if.h \
|
||||
usb_if.h usbdevs.h opt_inet.h
|
||||
usb_if.h usbdevs.h opt_inet.h opt_inet6.h
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
||||
@@ -3,6 +3,6 @@ S= ${SRCTOP}/sys
|
||||
.PATH: $S/dev/usb/input
|
||||
|
||||
KMOD= wmt
|
||||
SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h wmt.c
|
||||
SRCS= opt_bus.h opt_kbd.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h wmt.c
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
||||
Reference in New Issue
Block a user