xref: /freebsd/sys/modules/mt76/mt7615/Makefile (revision 7728586800bd5bb4655cff6d661133ed10cc2ff7)
1*77285868SBjoern A. ZeebDEVDIR=	${SRCTOP}/sys/contrib/dev/mediatek/mt76/mt7615
2*77285868SBjoern A. Zeeb
3*77285868SBjoern A. Zeeb.PATH: ${DEVDIR}
4*77285868SBjoern A. Zeeb
5*77285868SBjoern A. ZeebWITH_DEBUGFS=		0
6*77285868SBjoern A. ZeebWITH_DEV_COREDUMP=	0
7*77285868SBjoern A. Zeeb
8*77285868SBjoern A. ZeebKMOD=	if_mt7615
9*77285868SBjoern A. Zeeb
10*77285868SBjoern A. Zeeb# Common stuff.
11*77285868SBjoern A. ZeebSRCS=	init.c main.c mac.c mcu.c eeprom.c
12*77285868SBjoern A. Zeeb
13*77285868SBjoern A. Zeeb# PCIe  (7622_WMAC ignored)
14*77285868SBjoern A. ZeebSRCS+=	dma.c mmio.c pci.c pci_init.c pci_mac.c
15*77285868SBjoern A. Zeeb
16*77285868SBjoern A. Zeeb# USB + SDIO ignored currently.
17*77285868SBjoern A. Zeeb
18*77285868SBjoern A. Zeeb.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0
19*77285868SBjoern A. ZeebSRCS+=	debugfs.c
20*77285868SBjoern A. ZeebCFLAGS+=	-DCONFIG_MT7915_DEBUGFS=${WITH_DEBUGFS}
21*77285868SBjoern A. Zeeb.endif
22*77285868SBjoern A. Zeeb
23*77285868SBjoern A. ZeebCFLAGS+=	-DKBUILD_MODNAME='"mt7615"'
24*77285868SBjoern A. ZeebCFLAGS+=	-I${DEVDIR}
25*77285868SBjoern A. Zeeb
26*77285868SBjoern A. Zeeb.include <bsd.kmod.mk>
27