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