On Sat, 17 Jan 2026, Tassilo Philipp wrote:

[off-list]

Mh... ich kanns leider nicht auf riscv64 selber bauen, weil:

# cd /usr/src/sys/modules/iwlwifi
# make
make: /usr/src/sys/modules/iwlwifi/Makefile:7: Variable "KERN_OPTS" is undefined
       while evaluating variable "KERN_OPTS" with value ""

ich glaub da fehlt wohl:

SYSDIR?=${SRCTOP}/sys
.include "${SYSDIR}/conf/kern.opts.mk"

Aber auch damit gehts nicht. Bin grad zwischen Tür und Angel, sonst würd ichs weiter debuggen.

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>




Und... in der /usr/src/sys/modules/Makefile ist der iwlwifi Teil so drin:

.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
   ${MACHINE_CPUARCH} == "i386"
_ena=           ena
_gve=           gve
_iwlwifi=       iwlwifi
_rtw88=         rtw88
_rtw89=         rtw89
_vmware=        vmware
.endif

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



--
Bjoern A. Zeeb                                                     r15:7

Reply via email to