aboutsummaryrefslogtreecommitdiff
path: root/sys/modules
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2026-01-13 21:05:05 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2026-01-14 18:08:39 +0000
commit4162a419a475089c8a3d2350de40c58b023e9288 (patch)
tree4bcab4a4a0be89d4794eab7271410f7edfabdd85 /sys/modules
parentc71f18998e0b107845f2b627861225bf6156cda6 (diff)
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index cce5f14ce20d..538cd7a1f37d 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -551,6 +551,17 @@ SUBDIR+= linux64
SUBDIR+= linux_common
.endif
+# LinuxKPI based wireless drivers.
+.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
+ ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "riscv"
+_iwlwifi= iwlwifi
+_rtw88= rtw88
+# rtw89 currently cannot be compiled without ACPI (seems also broken in Linux).
+.if ${KERN_OPTS:MDEV_ACPI}
+_rtw89= rtw89
+.endif
+.endif
+
.if ${MACHINE_CPUARCH} != "arm"
.if ${MK_OFED} != "no" || defined(ALL_MODULES)
_ibcore= ibcore
@@ -583,9 +594,6 @@ _acpi= acpi
_ena= ena
_gve= gve
_igc= igc
-_iwlwifi= iwlwifi
-_rtw88= rtw88
-_rtw89= rtw89
_vmware= vmware
.endif