1# $FreeBSD$ 2 3DEVATH12KDIR= ${SRCTOP}/sys/contrib/dev/athk/ath12k 4 5.PATH: ${DEVATH12KDIR} 6 7WITH_CONFIG_ATH12K_TRACING= 0 8 9KMOD= if_ath12k 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 dp_mon.c debug.c 14SRCS+= ce.c peer.c dbring.c hw.c 15 16SRCS+= mhi.c pci.c 17 18.if defined(WITH_CONFIG_ATH12K_TRACING) && ${WITH_CONFIG_ATH12K_TRACING} > 0 19CFLAGS+= -DCONFIG_ATH12K_TRACING=${WITH_CONFIG_ATH12K_TRACING} 20SRCS+= trace.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='"ath12k"' 28 29CFLAGS+= -I${DEVATH12KDIR} 30CFLAGS+= -I${DEVATH12KDIR}/.. 31CFLAGS+= ${LINUXKPI_INCLUDES} 32# Helpful after fresh imports. 33#CFLAGS+= -ferror-limit=0 34 35CFLAGS+= -DCONFIG_ATH12K_DEBUG 36 37.include <bsd.kmod.mk> 38