aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/ath12k/Makefile
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2026-03-19 23:02:05 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2026-03-30 03:53:51 +0000
commite8166d7f378bb449315aff535909c153f3e71daf (patch)
tree1fc4b635b14ab9983b3ee278b6970d56a79ea6a8 /sys/modules/ath12k/Makefile
parentb5815ee99a015c6ac118d7e9646d0c95b72e9f2d (diff)
Diffstat (limited to 'sys/modules/ath12k/Makefile')
-rw-r--r--sys/modules/ath12k/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/modules/ath12k/Makefile b/sys/modules/ath12k/Makefile
index ff61769bd99e..018504812995 100644
--- a/sys/modules/ath12k/Makefile
+++ b/sys/modules/ath12k/Makefile
@@ -2,8 +2,10 @@ DEVATH12KDIR= ${SRCTOP}/sys/contrib/dev/athk/ath12k
.PATH: ${DEVATH12KDIR}
-ATH12K_ACPI= 0
+ATH12K_PCI= 1
ATH12K_AHB= 0
+
+ATH12K_ACPI= 0
ATH12K_COREDUMP= 0
ATH12K_DEBUGFS= 0
ATH12K_PM= 0
@@ -16,7 +18,11 @@ SRCS+= wmi.c mac.c reg.c htc.c qmi.c
SRCS+= dp.c dp_tx.c dp_rx.c dp_mon.c debug.c
SRCS+= ce.c peer.c dbring.c hw.c fw.c p2p.c
+.if defined(ATH12K_PCI) && ${ATH12K_PCI} > 0 && ${KERN_OPTS:MDEV_PCI}
SRCS+= mhi.c pci.c
+.else
+.error ath12k requires PCI support compiled in at this point
+.endif
.if defined(ATH12K_AHB) && ${ATH12K_AHB} > 0
CFLAGS+= -DCONFIG_ATH12K_AHB