1.include <kmod.opts.mk> 2 3DEVDIR= ${SRCTOP}/sys/contrib/dev/mediatek/mt76/mt7925 4 5.PATH: ${DEVDIR} 6 7KMOD= if_mt7925 8 9# Common stuff. 10SRCS= init.c main.c mac.c mcu.c regd.c 11 12# PCI parts; PCI needs to be compiled into the kernel and cannot be loaded. 13.if defined(WITH_PCI) && ${WITH_PCI} > 0 && ${KERN_OPTS:MDEV_PCI} 14SRCS+= pci.c pci_mac.c pci_mcu.c 15.endif 16 17# USB parts; USB can be loaded and is unconditional on any kernel config. 18.if defined(WITH_USB) && ${WITH_USB} > 0 19SRCS+= usb.c 20.endif 21 22.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0 23SRCS+= debugfs.c 24CFLAGS+= -DCONFIG_MT7925_DEBUGFS=${WITH_DEBUGFS} 25.endif 26 27CFLAGS+= -DKBUILD_MODNAME='"mt7925"' 28CFLAGS+= -I${DEVDIR} 29 30.include <bsd.kmod.mk> 31