Skip to content

Commit 8a84794

Browse files
committed
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
1 parent 1685192 commit 8a84794

File tree

18 files changed

+23
-13
lines changed

18 files changed

+23
-13
lines changed

sys/modules/e6000sw/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
KMOD= e6000sw
44
SRCS= e6000sw.c
55

6-
SRCS+= bus_if.h etherswitch_if.h mdio_if.h miibus_if.h ofw_bus_if.h opt_platform.h
6+
SRCS+= bus_if.h device_if.h etherswitch_if.h mdio_if.h miibus_if.h ofw_bus_if.h opt_platform.h
77

88
.include <bsd.kmod.mk>

sys/modules/etherswitch/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
KMOD = etherswitch
44

55
SRCS= etherswitch.c
6-
SRCS+= mdio_if.h miibus_if.h etherswitch_if.h etherswitch_if.c
6+
SRCS+= bus_if.h device_if.h mdio_if.h miibus_if.h etherswitch_if.h etherswitch_if.c
77
CFLAGS+= -I${SRCTOP}/sys/dev/etherswitch
88

99
.include <bsd.kmod.mk>

sys/modules/evdev/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
KMOD= evdev
44
SRCS= cdev.c evdev.c evdev_mt.c evdev_utils.c
5-
SRCS+= opt_evdev.h bus_if.h device_if.h
5+
SRCS+= opt_evdev.h opt_kbd.h bus_if.h device_if.h
66

77
EXPORT_SYMS= YES
88

sys/modules/gpio/gpioaei/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ SRCS+= \
1010
gpio_if.h \
1111
gpiobus_if.h
1212

13+
SRCS+= opt_acpi.h opt_platform.h
14+
1315
CFLAGS+= -I. -I${SRCTOP}/sys/dev/gpio/
1416

1517
.include <bsd.kmod.mk>

sys/modules/gve/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ SRCS= gve_main.c \
4040
gve_tx_dqo.c \
4141
gve_sysctl.c
4242
SRCS+= device_if.h bus_if.h pci_if.h
43-
43+
SRCS+= opt_inet6.h
4444
.include <bsd.kmod.mk>

sys/modules/if_infiniband/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
KMOD= if_infiniband
44
SRCS= if_infiniband.c \
55
opt_inet.h \
6-
opt_inet6.h
6+
opt_inet6.h \
7+
opt_kbd.h
78

89
EXPORT_SYMS= YES
910

sys/modules/if_vlan/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
KMOD= if_vlan
44
SRCS= if_vlan.c
5-
SRCS+= opt_inet.h opt_inet6.h opt_kern_tls.h opt_vlan.h opt_ratelimit.h
5+
SRCS+= opt_inet.h opt_inet6.h opt_ipsec.h opt_kern_tls.h opt_vlan.h opt_ratelimit.h
66

77
.include <bsd.kmod.mk>

sys/modules/linux64/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ SRCS= linux_dummy_machdep.c \
3131
opt_ktrace.h \
3232
opt_inet6.h \
3333
opt_posix.h \
34+
opt_usb.h \
3435
bus_if.h \
3536
device_if.h \
3637
vnode_if.h \

sys/modules/md/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.PATH: ${SRCTOP}/sys/dev/md
22

33
KMOD= geom_md
4-
SRCS= md.c opt_md.h opt_geom.h opt_rootdevname.h vnode_if.h
4+
SRCS= bus_if.h device_if.h md.c opt_md.h opt_geom.h opt_rootdevname.h vnode_if.h
55

66
.include <bsd.kmod.mk>

sys/modules/miiproxy/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
KMOD = miiproxy
44

55
SRCS= miiproxy.c
6-
SRCS+= mdio_if.h miibus_if.h
6+
SRCS+= bus_if.h mdio_if.h miibus_if.h opt_platform.h
77
CFLAGS+= -I${SRCTOP}/sys/dev/etherswitch
88

99
.include <bsd.kmod.mk>

0 commit comments

Comments
 (0)