1MT76_DRIVER_NAME= mt76_core 2 3.include <kmod.opts.mk> 4 5KMOD= ${MT76_DRIVER_NAME} 6 7.PATH: ${COMMONDIR} 8 9MT76_DEBUGFS?= 0 10 11# Basic stuff. 12SRCS+= mac80211.c mmio.c util.c dma.c eeprom.c tx.c agg-rx.c mcu.c 13SRCS+= channel.c scan.c wed.c 14 15# PCI parts; PCI needs to be compiled into the kernel and cannot be loaded. 16.if defined(MT76_PCI) && ${MT76_PCI} > 0 && ${KERN_OPTS:MDEV_PCI} 17SRCS+= pci.c 18.endif 19 20# SDIO parts; SDIO depends on an MMCCAM kernel. 21.if defined(MT76_SDIO) && ${MT76_SDIO} > 0 && ${KERN_OPTS:MMMCCAM} 22SRCS+= sdio.c sdio_txrx.c 23.endif 24 25# USB parts; USB can be loaded and is unconditional on any kernel config. 26.if defined(MT76_USB) && ${MT76_USB} > 0 27SRCS+= usb.c 28#SRCS+= usb_trace.c 29.endif 30 31# Connac-Lib stuff. 32SRCS+= mt76_connac_mac.c mt76_connac_mcu.c mt76_connac3_mac.c 33 34# MT76x02-Lib stuff (we don't need; that's for older chipsets not yet supported) 35 36# XXX should this be a separate module? 37# MT792X-LIB stuff. 38SRCS+= mt792x_core.c mt792x_mac.c mt792x_dma.c 39#SRCS+= mt792x_trace.c 40.if defined(MT76_ACPI) && ${MT76_ACPI} > 0 41SRCS+= mt792x_acpi_sar.c 42.endif 43.if defined(MT76_USB) && ${MT76_USB} > 0 44SRCS+= mt792x_usb.c 45.endif 46.if defined(MT76_DEBUGFS) && ${MT76_DEBUGFS} > 0 47SRCS+= mt792x_debugfs.c 48.endif 49 50.if defined(MT76_DEBUGFS) && ${MT76_DEBUGFS} > 0 51SRCS+= debugfs.c 52CFLAGS+= -DCONFIG_MAC80211_DEBUGFS 53.endif 54 55#SRCS+= trace.c 56 57EXPORT_SYMS= YES 58 59.include <bsd.kmod.mk> 60