1# $FreeBSD$ 2 3DEVDIR= ${SRCTOP}/sys/contrib/dev/mediatek/mt76/mt7921 4 5.PATH: ${DEVDIR} 6 7KMOD= if_mt7921 8 9# Common stuff. 10SRCS= init.c main.c mac.c mcu.c 11#SRCS+= trace.c 12 13# PCI stuff. 14SRCS+= pci.c pci_mac.c pci_mcu.c dma.c 15 16# USB stuff. 17#SRCS+= usb.c usb_mac.c 18 19# SDIO stuff. 20#SRCS+= sdio.c sdio_mac.c sdio_mcu.c 21 22.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0 23SRCS+= debugfs.c 24CFLAGS+= -DCONFIG_MT7921_DEBUGFS=${WITH_DEBUGFS} 25.endif 26 27CFLAGS+= -DKBUILD_MODNAME='"mt7921"' 28CFLAGS+= -I${DEVDIR} 29 30.include <bsd.kmod.mk> 31