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