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