1KMOD= mt76_core 2 3# Basic stuff. 4SRCS= mac80211.c mmio.c util.c dma.c eeprom.c tx.c agg-rx.c mcu.c 5#SRCS+= trace.c 6 7# Bus stuff. 8SRCS+= pci.c 9.if defined(WITH_USB) && ${WITH_USB} > 0 10SRCS+= usb.c # usb_trace.c 11.endif 12#SRCS+= sdio.c sdio_txrx.c 13 14# Connac-Lib stuff. 15SRCS+= mt76_connac_mac.c mt76_connac_mcu.c mt76_connac3_mac.c 16 17# MT76x02-Lib stuff (we don't need; that's for older chipsets not yet supported) 18 19# XXX should this be a separate module? 20# MT792X-LIB stuff. 21SRCS+= mt792x_core.c mt792x_mac.c mt792x_dma.c 22#SRCS+= mt792x_trace.c 23.if defined(WITH_ACPI) && ${WITH_ACPI} > 0 24SRCS+= mt792x_acpi_sar.c 25.endif 26.if defined(WITH_USB) && ${WITH_USB} > 0 27SRCS+= mt792x_usb.c 28.endif 29.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0 30SRCS+= mt792x_debugfs.c 31.endif 32 33.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0 34SRCS+= debugfs.c 35.endif 36 37CFLAGS+= -DKBUILD_MODNAME='"mt76_core"' 38CFLAGS+= -DCONFIG_MAC80211_DEBUGFS=${WITH_DEBUGFS} 39 40.include <bsd.kmod.mk> 41