1 2DEVATH11KDIR= ${SRCTOP}/sys/contrib/dev/athk/ath11k 3 4.PATH: ${DEVATH11KDIR} 5 6WITH_DEBUGFS= 0 # Does not yet compile 7WITH_CONFIG_PM= 0 8 9KMOD= if_ath11k 10 11SRCS+= core.c hal.c hal_tx.c hal_rx.c 12SRCS+= wmi.c mac.c reg.c htc.c qmi.c 13SRCS+= dp.c dp_tx.c dp_rx.c debug.c 14SRCS+= ce.c peer.c dbring.c hw.c 15 16SRCS+= mhi.c pci.c pcic.c 17 18.if defined(WITH_CONFIG_PM) && ${WITH_CONFIG_PM} > 0 19CFLAGS+= -DCONFIG_PM=${WITH_CONFIG_PM} 20SRCS+= wow.c 21.endif 22 23# Other 24SRCS+= ${LINUXKPI_GENSRCS} 25SRCS+= opt_wlan.h opt_inet6.h opt_inet.h opt_acpi.h 26 27CFLAGS+= -DKBUILD_MODNAME='"ath11k"' 28 29CFLAGS+= -I${DEVATH11KDIR} 30CFLAGS+= -I${DEVATH11KDIR}/.. 31CFLAGS+= ${LINUXKPI_INCLUDES} 32# Helpful after fresh imports. 33#CFLAGS+= -ferror-limit=0 34 35CFLAGS+= -DCONFIG_ATH11K_DEBUG 36 37.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0 38SRCS+= debugfs.c debugfs_htt_stats.c debugfs_sta.c 39CFLAGS+= -DCONFIG_ATH11K_DEBUGFS=${WITH_DEBUGFS} 40CFLAGS+= -DCONFIG_MAC80211_DEBUGFS=${WITH_DEBUGFS} 41.endif 42 43#CFLAGS+= -DCONFIG_ATH11K_SPECTRAL 44#CFLAGS+= -DCONFIG_ATH11K_TRACING 45#CFLAGS+= -DCONFIG_NL80211_TESTMODE 46#CFLAGS+= -DCONFIG_PM 47#CFLAGS+= -DCONFIG_THERMAL 48 49.include <bsd.kmod.mk> 50