The kernel instructions to compile your own kernel at https://www.qubes-os.org/doc/managing-vm-kernels/#installing-different-vm-kernel-based-on-dom0-kernel seem incomplete, so I'm making a slightly more complete version here:
sudo qubes-dom0-update qubes-kernel-vm-support kernel-devel
ls /usr/src/kernels/
cd 5.10.61-1.fc32.qubes.x86_64
sudo qubes-prepare-vm-kernel 5.10.61-1.fc32.qubes.x86_64
However, the compilation process runs way too fast, so it is obviously not compiling the kernel. Possibly just managing modules?
Confirmed: typing make all
or make zImage
returns "flex: command not found", so it is not capable of recompiling it as it would require packages to do the actual build that are not on your system