When updating the kernel (to 5.15.46), the nvidia515 driver cannot be compiled and installed correctly

I install a new kernel based on the following procedure:

  1. Download the kernel source code from kernel.org
  2. shell:
sudo make modules_install
sudo make install

However, during the “make install” step, an error occurs:

Building module:
cleaning build area...(bad exit status: 2)
unset ARCH; [ ! -h /usr/bin/cc ] && export CC=/usr/bin/gcc; env NV_VERBOSE=1 'make' -j16 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=5.15.46 IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 SYSSRC=/lib/modules/5.15.46/build LD=/usr/bin/ld.bfd modules...(bad exit status: 2)
ERROR (dkms apport): kernel package linux-headers-5.15.46 is not supported
Error! Bad return status for module build on kernel: 5.15.46 (x86_64)
Consult /var/lib/dkms/nvidia/515.105.01/build/make.log for more information.

I checked the make.log file and found that it was caused by the /KBuild folder not being found:

DKMS make.log for nvidia-515.105.01 for kernel 5.15.46 (x86_64)
Makefile:18: /Kbuild: No such file or directory
make[1]: *** No rule to make target '/Kbuild'.  Stop.

My question is, how to modify the conf file of dkms so that the nvidia515 driver can be compiled normally?