xref: /freebsd/sys/modules/mt76/mt7996/Makefile (revision f53355131f65d64e7643d734dbcd4fb2a5de20ed)
1*cbb3ec25SBjoern A. ZeebDEVDIR=	${SRCTOP}/sys/contrib/dev/mediatek/mt76/mt7996
2*cbb3ec25SBjoern A. Zeeb
3*cbb3ec25SBjoern A. Zeeb.PATH: ${DEVDIR}
4*cbb3ec25SBjoern A. Zeeb
5*cbb3ec25SBjoern A. ZeebWITH_DEBUGFS=		0
6*cbb3ec25SBjoern A. ZeebWITH_DEV_COREDUMP=	1
7*cbb3ec25SBjoern A. Zeeb
8*cbb3ec25SBjoern A. ZeebKMOD=	if_mt7996
9*cbb3ec25SBjoern A. Zeeb
10*cbb3ec25SBjoern A. Zeeb# Common stuff.
11*cbb3ec25SBjoern A. ZeebSRCS=	init.c main.c mac.c mcu.c mmio.c eeprom.c
12*cbb3ec25SBjoern A. ZeebSRCS+=	pci.c dma.c
13*cbb3ec25SBjoern A. Zeeb
14*cbb3ec25SBjoern A. Zeeb.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0
15*cbb3ec25SBjoern A. ZeebSRCS+=	debugfs.c
16*cbb3ec25SBjoern A. ZeebCFLAGS+=	-DCONFIG_MT7996_DEBUGFS=${WITH_DEBUGFS}
17*cbb3ec25SBjoern A. Zeeb.endif
18*cbb3ec25SBjoern A. Zeeb
19*cbb3ec25SBjoern A. Zeeb.if defined(WITH_DEV_COREDUMP) && ${WITH_DEV_COREDUMP} > 0
20*cbb3ec25SBjoern A. ZeebSRCS+=	coredump.c
21*cbb3ec25SBjoern A. ZeebCFLAGS+=	-DCONFIG_DEV_COREDUMP=${WITH_DEV_COREDUMP}
22*cbb3ec25SBjoern A. Zeeb.endif
23*cbb3ec25SBjoern A. Zeeb
24*cbb3ec25SBjoern A. ZeebCFLAGS+=	-DKBUILD_MODNAME='"mt7996"'
25*cbb3ec25SBjoern A. ZeebCFLAGS+=	-I${DEVDIR}
26*cbb3ec25SBjoern A. Zeeb
27*cbb3ec25SBjoern A. Zeeb.include <bsd.kmod.mk>
28