opnsense-src/sys/modules/mt76/mt7615/Makefile
Bjoern A. Zeeb dd4d05b25f mt76: add mt7615 to the pile of buildable drivers
Ignoring page_pools with the few needed adjustments and ignoring 7622
mt7615 seems to build as well.  Add it so once we can connect it to
the build people can start testing and debugging.
(The actual work was done on a newer version of the mt76 drivers but
it seems the to-build-changes equally apply here already).

Requested by:	Radu-Cristian Fotescu (freebsd-wireless, 2024-07-31)
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 7728586800)
2024-10-09 19:18:49 +00:00

26 lines
502 B
Makefile

DEVDIR= ${SRCTOP}/sys/contrib/dev/mediatek/mt76/mt7615
.PATH: ${DEVDIR}
WITH_DEBUGFS= 0
WITH_DEV_COREDUMP= 0
KMOD= if_mt7615
# Common stuff.
SRCS= init.c main.c mac.c mcu.c eeprom.c
# PCIe (7622_WMAC ignored)
SRCS+= dma.c mmio.c pci.c pci_init.c pci_mac.c
# USB + SDIO ignored currently.
.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0
SRCS+= debugfs.c
CFLAGS+= -DCONFIG_MT7915_DEBUGFS=${WITH_DEBUGFS}
.endif
CFLAGS+= -DKBUILD_MODNAME='"mt7615"'
CFLAGS+= -I${DEVDIR}
.include <bsd.kmod.mk>