How to download Debian source code?

How to download the Debian image source and compile the images for Linux kernel. The kernel image and DTB.