xref: /freebsd/sys/modules/ath11k/Makefile (revision ba3c1f5972d7b90feb6e6da47905ff2757e0fe57)
1# $FreeBSD$
2
3DEVATH11KDIR=	${SRCTOP}/sys/contrib/dev/athk/ath11k
4
5.PATH: ${DEVATH11KDIR}
6
7WITH_DEBUGFS=	0		# Does not yet compile
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 wow.c
15
16SRCS+=	mhi.c pci.c
17
18# Other
19SRCS+=	${LINUXKPI_GENSRCS}
20SRCS+=	opt_wlan.h opt_inet6.h opt_inet.h opt_acpi.h
21
22CFLAGS+=	-DKBUILD_MODNAME='"ath11k"'
23
24CFLAGS+=	-I${DEVATH11KDIR}
25CFLAGS+=	-I${DEVATH11KDIR}/..
26CFLAGS+=	${LINUXKPI_INCLUDES}
27# Helpful after fresh imports.
28#CFLAGS+=	-ferror-limit=0
29
30CFLAGS+=	-DCONFIG_ATH11K_DEBUG
31
32.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0
33SRCS+=		debugfs.c debugfs_htt_stats.c debugfs_sta.c
34CFLAGS+=	-DCONFIG_ATH11K_DEBUGFS=${WITH_DEBUGFS}
35CFLAGS+=	-DCONFIG_MAC80211_DEBUGFS=${WITH_DEBUGFS}
36.endif
37
38#CFLAGS+=	-DCONFIG_ATH11K_SPECTRAL
39#CFLAGS+=	-DCONFIG_ATH11K_TRACING
40#CFLAGS+=	-DCONFIG_NL80211_TESTMODE
41#CFLAGS+=	-DCONFIG_PM
42#CFLAGS+=	-DCONFIG_THERMAL
43
44.include <bsd.kmod.mk>
45