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