mirror of
https://github.com/opnsense/src.git
synced 2026-02-24 10:20:24 -05:00
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
30 lines
517 B
Makefile
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>
|