I used these commands to build in the docker of Fedora:
export SYSSRC=/usr/src/kernels/6.11.4-201.fc40.x86_64
export SYSOUT=out
make modules
But the following error occurred:
The Module.symvers file is missing, or does not contain any
symbols exported from the kernel. This could cause the NVIDIA
kernel modules to be built against a configuration that does
not accurately reflect the actual target kernel.
But this file Module.symvers
is included in the kernel-devel package of Fedora, so where did I do it wrong?