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