xref: /freebsd/sys/modules/mt76/core/Makefile (revision 3c4ba5f55438f7afd4f4b0b56f88f2bb505fd6a6)
1# $FreeBSD$
2
3KMOD=	mt76_core
4
5# Basic stuff.
6SRCS=	mac80211.c mmio.c util.c dma.c  eeprom.c tx.c agg-rx.c mcu.c
7#SRCS+=	trace.c
8
9# Bus stuff.
10SRCS+=	pci.c
11#SRCS+=	usb.c	# usb_trace.c
12#SRCS+=	sdio.c sdio_txrx.c
13
14# Connac-Lib stuff.
15SRCS+=	mt76_connac_mac.c mt76_connac_mcu.c
16
17# MT76x02-Lib stuff (we don't need; that's for older chipsets not yet supported)
18
19.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0
20SRCS+=	debugfs.c
21.endif
22
23CFLAGS+=	-DKBUILD_MODNAME='"mt76_core"'
24CFLAGS+=	-DCONFIG_MAC80211_DEBUGFS=${WITH_DEBUGFS}
25
26.include <bsd.kmod.mk>
27