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