That I haven't tested indeed. I only built it all along with make buildkernel.
I'll go and fix that so the module could be built by itself; it's just
.include <kmod.opts.mk>
Thanks! And sorry I didn't spot this before.
I think you haven't updated your sources/branch. Looks like this now:
554 # LinuxKPI based wireless drivers.
555 .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
556 ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "riscv"
557 _iwlwifi= iwlwifi
558 _rtw88= rtw88
559 # rtw89 currently cannot be compiled without ACPI (seems also broken in
Linux).
560 .if ${KERN_OPTS:MDEV_ACPI}
561 _rtw89= rtw89
562 .endif
563 .endif
Indeed, you are right. I was in a rush, and didn't update it all,
cleanly. My bad. Will try again when having more time and head space.
Sorry for the noise