opnsense-src/sys/modules/ath11k/Makefile
Bjoern A. Zeeb 28348caeee ath11k: update driver from upstream
This is a set of updates of the ath11k driver based on wireless-testing
(wt-2023-05-11) 711dca0ca3d77414f8f346e564e9c8640147f40d (after v6.4-rc1),
(wt-2023-06-09) 7bd20e011626ccc3ad53e57873452b1716fcfaaa (after v6.4-rc5),
(wt-2023-07-24) 62e409149b62a285e89018e49b2e115757fb9022 (after v6.5-rc3),
(wt-2023-08-06) 2a220a15be657a24868368892e3e2caba2115283 (after v6.5-rc4).

MFC after:	20 days
2023-08-21 01:32:46 +00:00

49 lines
1.1 KiB
Makefile

DEVATH11KDIR= ${SRCTOP}/sys/contrib/dev/athk/ath11k
.PATH: ${DEVATH11KDIR}
WITH_DEBUGFS= 0 # Does not yet compile
WITH_CONFIG_PM= 0
KMOD= if_ath11k
SRCS+= core.c hal.c hal_tx.c hal_rx.c
SRCS+= wmi.c mac.c reg.c htc.c qmi.c
SRCS+= dp.c dp_tx.c dp_rx.c debug.c
SRCS+= ce.c peer.c dbring.c hw.c
SRCS+= mhi.c pci.c pcic.c
.if defined(WITH_CONFIG_PM) && ${WITH_CONFIG_PM} > 0
CFLAGS+= -DCONFIG_PM=${WITH_CONFIG_PM}
SRCS+= wow.c
.endif
# Other
SRCS+= ${LINUXKPI_GENSRCS}
SRCS+= opt_wlan.h opt_inet6.h opt_inet.h opt_acpi.h
CFLAGS+= -DKBUILD_MODNAME='"ath11k"'
CFLAGS+= -I${DEVATH11KDIR}
CFLAGS+= -I${DEVATH11KDIR}/..
CFLAGS+= ${LINUXKPI_INCLUDES}
# Helpful after fresh imports.
#CFLAGS+= -ferror-limit=0
CFLAGS+= -DCONFIG_ATH11K_DEBUG
.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0
SRCS+= debugfs.c debugfs_htt_stats.c debugfs_sta.c
CFLAGS+= -DCONFIG_ATH11K_DEBUGFS=${WITH_DEBUGFS}
CFLAGS+= -DCONFIG_MAC80211_DEBUGFS=${WITH_DEBUGFS}
.endif
#CFLAGS+= -DCONFIG_ATH11K_SPECTRAL
#CFLAGS+= -DCONFIG_ATH11K_TRACING
#CFLAGS+= -DCONFIG_NL80211_TESTMODE
#CFLAGS+= -DCONFIG_PM
#CFLAGS+= -DCONFIG_THERMAL
.include <bsd.kmod.mk>