opnsense-src/sys/modules/mt76/mt7921/Makefile
Bjoern A. Zeeb 3c4ba5f554 mt76: add module build framework and man pages
Add framework to build if_mt7915 and if_mt7921 with LinuxKPI
as well as initial man pages for the two mt76 chipset drivers.

MFC after:	2 months
2023-04-23 21:31:07 +00:00

30 lines
517 B
Makefile

# $FreeBSD$
DEVDIR= ${SRCTOP}/sys/contrib/dev/mediatek/mt76/mt7921
.PATH: ${DEVDIR}
KMOD= if_mt7921
# Common stuff.
SRCS= init.c main.c mac.c mcu.c
#SRCS+= trace.c
# PCI stuff.
SRCS+= pci.c pci_mac.c pci_mcu.c dma.c
# USB stuff.
#SRCS+= usb.c usb_mac.c
# SDIO stuff.
#SRCS+= sdio.c sdio_mac.c sdio_mcu.c
.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0
SRCS+= debugfs.c
CFLAGS+= -DCONFIG_MT7921_DEBUGFS=${WITH_DEBUGFS}
.endif
CFLAGS+= -DKBUILD_MODNAME='"mt7921"'
CFLAGS+= -I${DEVDIR}
.include <bsd.kmod.mk>