Build Linux kernel from source
Host: Debian 12.10. Target Kernel Version: 5.10.168.
Host: Debian 12.10. Target Kernel Version: 5.10.168.
This article explains how to set up a shared folder between a Windows host and a Debian guest in QEMU.
QEMU can build an environment that identical to the target device at the hardware level, and it is a good alternative to cross-compilation.