DEVDIR= ${SRCTOP}/sys/contrib/dev/mediatek/mt76/mt7996 .PATH: ${DEVDIR} WITH_DEBUGFS= 0 WITH_DEV_COREDUMP= 1 KMOD= if_mt7996 # Common stuff. SRCS= init.c main.c mac.c mcu.c mmio.c eeprom.c SRCS+= pci.c dma.c .if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0 SRCS+= debugfs.c CFLAGS+= -DCONFIG_MT7996_DEBUGFS=${WITH_DEBUGFS} .endif .if defined(WITH_DEV_COREDUMP) && ${WITH_DEV_COREDUMP} > 0 SRCS+= coredump.c CFLAGS+= -DCONFIG_DEV_COREDUMP=${WITH_DEV_COREDUMP} .endif CFLAGS+= -DKBUILD_MODNAME='"mt7996"' CFLAGS+= -I${DEVDIR} .include