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