mirror of
https://github.com/opnsense/src.git
synced 2026-02-22 17:32:57 -05:00
ACPI is not handled specially by sys/conf/kern.opts.mk (unlike a few options), so we should fall back on the generic behavior of sys/conf/config.mk, which pulls from all the generated opt*.h files, including opt_acpi.h, which will cause DEV_ACPI to be included in KERN_OPTS. Then the generic machinery in sys/conf/kmod.mk will cause SRCS.DEV_ACPI to be included in SRCS when appropriate. Reviewed by: jhb, imp Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D38737
40 lines
790 B
Makefile
40 lines
790 B
Makefile
.PATH: ${SRCTOP}/sys/dev/dpaa2
|
|
|
|
KMOD= dpaa2
|
|
|
|
SRCS= dpaa2_mc.c
|
|
SRCS+= dpaa2_rc.c
|
|
SRCS+= dpaa2_io.c
|
|
SRCS+= dpaa2_bp.c
|
|
SRCS+= dpaa2_ni.c
|
|
SRCS+= dpaa2_mcp.c
|
|
SRCS+= dpaa2_swp.c
|
|
SRCS+= dpaa2_mac.c
|
|
SRCS+= dpaa2_con.c
|
|
|
|
SRCS+= dpaa2_cmd_if.c dpaa2_cmd_if.h
|
|
SRCS+= dpaa2_swp_if.c dpaa2_swp_if.h
|
|
SRCS+= dpaa2_mc_if.c dpaa2_mc_if.h
|
|
SRCS+= memac_mdio_common.c memac_mdio_if.c memac_mdio_if.h
|
|
|
|
SRCS+= bus_if.h device_if.h miibus_if.h
|
|
SRCS+= pcib_if.h pci_if.h
|
|
SRCS+= opt_acpi.h opt_platform.h
|
|
|
|
SRCS.DEV_ACPI= dpaa2_mc_acpi.c \
|
|
memac_mdio_acpi.c \
|
|
acpi_if.h \
|
|
acpi_bus_if.h
|
|
|
|
.if !empty(OPT_FDT)
|
|
SRCS+= dpaa2_mc_fdt.c \
|
|
memac_mdio_fdt.c \
|
|
ofw_bus_if.h
|
|
.endif
|
|
|
|
MFILES= dev/dpaa2/dpaa2_cmd_if.m \
|
|
dev/dpaa2/dpaa2_swp_if.m \
|
|
dev/dpaa2/dpaa2_mc_if.m \
|
|
dev/dpaa2/memac_mdio_if.m
|
|
|
|
.include <bsd.kmod.mk>
|