1DEVATH10KDIR= ${SRCTOP}/sys/contrib/dev/athk/ath10k 2 3.PATH: ${DEVATH10KDIR} 4 5WITH_CONFIG_FWLOG= 1 6 7KMOD= if_ath10k 8 9SRCS+= core.c debug.c mac.c ce.c hw.c bmi.c 10SRCS+= htc.c htt.c htt_rx.c htt_tx.c 11SRCS+= txrx.c wmi.c wmi-tlv.c 12SRCS+= p2p.c swap.c 13 14SRCS+= pci.c 15 16# Other 17SRCS+= ${LINUXKPI_GENSRCS} 18SRCS+= opt_wlan.h opt_inet6.h opt_inet.h opt_acpi.h 19 20.if defined(WITH_CONFIG_FWLOG) && ${WITH_CONFIG_FWLOG} > 0 21SRCS+= fwlog.c 22CFLAGS+= -DCONFIG_FWLOG=${WITH_CONFIG_FWLOG} 23.endif 24 25CFLAGS+= -DKBUILD_MODNAME='"ath10k"' 26 27CFLAGS+= -I${DEVATH10KDIR} 28CFLAGS+= -I${DEVATH10KDIR}/.. 29CFLAGS+= ${LINUXKPI_INCLUDES} 30# Helpful after fresh imports. 31#CFLAGS+= -ferror-limit=0 32 33CFLAGS+= -DCONFIG_ATH10K_DEBUG 34 35#CFLAGS+= -DCONFIG_ATH10K_AHB 36#CFLAGS+= -DCONFIG_ATH10K_DEBUGFS 37#CFLAGS+= -DCONFIG_ATH10K_DFS_CERTIFIED 38#CFLAGS+= -DCONFIG_ATH10K_SPECTRAL 39#CFLAGS+= -DCONFIG_ATH10K_TRACING 40#CFLAGS+= -DCONFIG_DEV_COREDUMP 41#CFLAGS+= -DCONFIG_MAC80211_DEBUGFS 42#CFLAGS+= -DCONFIG_MAC80211_MESH 43#CFLAGS+= -DCONFIG_NL80211_TESTMODE 44#CFLAGS+= -DCONFIG_PM 45#CFLAGS+= -DCONFIG_PM_SLEEP 46#CFLAGS+= -DCONFIG_THERMAL 47 48.include <bsd.kmod.mk> 49