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