aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2026-02-07 22:31:59 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2026-02-09 21:49:46 +0000
commit32efafda38288848ec71e97eddf085ee0c108109 (patch)
tree13d53593f800d40390d643277d7b1f13e149a98f
parentca83c369755bcc205090093e6e0d045fae24714e (diff)
-rw-r--r--sys/modules/ath10k/Makefile12
1 files changed, 12 insertions, 0 deletions
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}