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