xref: /freebsd/sys/modules/mt76/core/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
13c4ba5f5SBjoern A. ZeebKMOD=	mt76_core
23c4ba5f5SBjoern A. Zeeb
33c4ba5f5SBjoern A. Zeeb# Basic stuff.
43c4ba5f5SBjoern A. ZeebSRCS=	mac80211.c mmio.c util.c dma.c  eeprom.c tx.c agg-rx.c mcu.c
53c4ba5f5SBjoern A. Zeeb#SRCS+=	trace.c
63c4ba5f5SBjoern A. Zeeb
73c4ba5f5SBjoern A. Zeeb# Bus stuff.
83c4ba5f5SBjoern A. ZeebSRCS+=	pci.c
9*cbb3ec25SBjoern A. Zeeb.if defined(WITH_USB) && ${WITH_USB} > 0
10*cbb3ec25SBjoern A. ZeebSRCS+=	usb.c	# usb_trace.c
11*cbb3ec25SBjoern A. Zeeb.endif
123c4ba5f5SBjoern A. Zeeb#SRCS+=	sdio.c sdio_txrx.c
133c4ba5f5SBjoern A. Zeeb
143c4ba5f5SBjoern A. Zeeb# Connac-Lib stuff.
15*cbb3ec25SBjoern A. ZeebSRCS+=	mt76_connac_mac.c mt76_connac_mcu.c mt76_connac3_mac.c
163c4ba5f5SBjoern A. Zeeb
173c4ba5f5SBjoern A. Zeeb# MT76x02-Lib stuff (we don't need; that's for older chipsets not yet supported)
183c4ba5f5SBjoern A. Zeeb
19*cbb3ec25SBjoern A. Zeeb# XXX should this be a separate module?
20*cbb3ec25SBjoern A. Zeeb# MT792X-LIB stuff.
21*cbb3ec25SBjoern A. ZeebSRCS+=	mt792x_core.c mt792x_mac.c mt792x_dma.c
22*cbb3ec25SBjoern A. Zeeb#SRCS+=	mt792x_trace.c
23*cbb3ec25SBjoern A. Zeeb.if defined(WITH_ACPI) && ${WITH_ACPI} > 0
24*cbb3ec25SBjoern A. ZeebSRCS+=	mt792x_acpi_sar.c
25*cbb3ec25SBjoern A. Zeeb.endif
26*cbb3ec25SBjoern A. Zeeb.if defined(WITH_USB) && ${WITH_USB} > 0
27*cbb3ec25SBjoern A. ZeebSRCS+=	mt792x_usb.c
28*cbb3ec25SBjoern A. Zeeb.endif
29*cbb3ec25SBjoern A. Zeeb.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0
30*cbb3ec25SBjoern A. ZeebSRCS+=	mt792x_debugfs.c
31*cbb3ec25SBjoern A. Zeeb.endif
32*cbb3ec25SBjoern A. Zeeb
333c4ba5f5SBjoern A. Zeeb.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0
343c4ba5f5SBjoern A. ZeebSRCS+=	debugfs.c
353c4ba5f5SBjoern A. Zeeb.endif
363c4ba5f5SBjoern A. Zeeb
373c4ba5f5SBjoern A. ZeebCFLAGS+=	-DKBUILD_MODNAME='"mt76_core"'
383c4ba5f5SBjoern A. ZeebCFLAGS+=	-DCONFIG_MAC80211_DEBUGFS=${WITH_DEBUGFS}
393c4ba5f5SBjoern A. Zeeb
403c4ba5f5SBjoern A. Zeeb.include <bsd.kmod.mk>
41