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