aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/modules/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index 2b41366579bb..924ddd880000 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -548,6 +548,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
@@ -579,9 +590,6 @@ _mlx5ib= mlx5ib
_ena= ena
_gve= gve
_igc= igc
-_iwlwifi= iwlwifi
-_rtw88= rtw88
-_rtw89= rtw89
_vmware= vmware
.endif