git: 32efafda3828 - main - ath10k: modules Makefile bus attachments
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 10 Feb 2026 00:46:54 UTC
The branch main has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=32efafda38288848ec71e97eddf085ee0c108109
commit 32efafda38288848ec71e97eddf085ee0c108109
Author: Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2026-02-07 22:31:59 +0000
Commit: Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2026-02-09 21:49:46 +0000
ath10k: modules Makefile bus attachments
Given USB in theory compiles add it to the Makefile. The upstream
support was never finished and I see little chances it ever will be
so keep USB disabled by default.
MFC after: 3 days
---
sys/modules/ath10k/Makefile | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/sys/modules/ath10k/Makefile b/sys/modules/ath10k/Makefile
index 93518c66f89f..16f481116357 100644
--- a/sys/modules/ath10k/Makefile
+++ b/sys/modules/ath10k/Makefile
@@ -2,6 +2,10 @@ DEVATH10KDIR= ${SRCTOP}/sys/contrib/dev/athk/ath10k
.PATH: ${DEVATH10KDIR}
+# Bus attachments.
+WITH_PCI= 1
+WITH_USB= 0 # Never finished upstream, not working.
+
WITH_CONFIG_FWLOG= 1
WITH_LEDS= 0
@@ -12,7 +16,15 @@ SRCS+= htc.c htt.c htt_rx.c htt_tx.c
SRCS+= txrx.c wmi.c wmi-tlv.c
SRCS+= p2p.c swap.c
+# PCI parts; PCI needs to be compiled into the kernel and cannot be loaded.
+.if defined(WITH_PCI) && ${WITH_PCI} > 0 && ${KERN_OPTS:MDEV_PCI}
SRCS+= pci.c
+.endif
+
+# USB parts; USB can be loaded and is unconditional on any kernel config.
+.if defined(WITH_USB) && ${WITH_USB} > 0
+SRCS+= usb.c
+.endif
# Other
SRCS+= ${LINUXKPI_GENSRCS}