xref: /freebsd/sys/modules/mt76/mt7921/Makefile (revision 3c4ba5f55438f7afd4f4b0b56f88f2bb505fd6a6)
1*3c4ba5f5SBjoern A. Zeeb# $FreeBSD$
2*3c4ba5f5SBjoern A. Zeeb
3*3c4ba5f5SBjoern A. ZeebDEVDIR=	${SRCTOP}/sys/contrib/dev/mediatek/mt76/mt7921
4*3c4ba5f5SBjoern A. Zeeb
5*3c4ba5f5SBjoern A. Zeeb.PATH: ${DEVDIR}
6*3c4ba5f5SBjoern A. Zeeb
7*3c4ba5f5SBjoern A. ZeebKMOD=	if_mt7921
8*3c4ba5f5SBjoern A. Zeeb
9*3c4ba5f5SBjoern A. Zeeb# Common stuff.
10*3c4ba5f5SBjoern A. ZeebSRCS=	init.c main.c mac.c mcu.c
11*3c4ba5f5SBjoern A. Zeeb#SRCS+=	trace.c
12*3c4ba5f5SBjoern A. Zeeb
13*3c4ba5f5SBjoern A. Zeeb# PCI stuff.
14*3c4ba5f5SBjoern A. ZeebSRCS+=	pci.c pci_mac.c pci_mcu.c dma.c
15*3c4ba5f5SBjoern A. Zeeb
16*3c4ba5f5SBjoern A. Zeeb# USB stuff.
17*3c4ba5f5SBjoern A. Zeeb#SRCS+=	usb.c usb_mac.c
18*3c4ba5f5SBjoern A. Zeeb
19*3c4ba5f5SBjoern A. Zeeb# SDIO stuff.
20*3c4ba5f5SBjoern A. Zeeb#SRCS+=	sdio.c sdio_mac.c sdio_mcu.c
21*3c4ba5f5SBjoern A. Zeeb
22*3c4ba5f5SBjoern A. Zeeb.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0
23*3c4ba5f5SBjoern A. ZeebSRCS+=	debugfs.c
24*3c4ba5f5SBjoern A. ZeebCFLAGS+=	-DCONFIG_MT7921_DEBUGFS=${WITH_DEBUGFS}
25*3c4ba5f5SBjoern A. Zeeb.endif
26*3c4ba5f5SBjoern A. Zeeb
27*3c4ba5f5SBjoern A. ZeebCFLAGS+=	-DKBUILD_MODNAME='"mt7921"'
28*3c4ba5f5SBjoern A. ZeebCFLAGS+=	-I${DEVDIR}
29*3c4ba5f5SBjoern A. Zeeb
30*3c4ba5f5SBjoern A. Zeeb.include <bsd.kmod.mk>
31