This example installs a customized 5.10.10 Linux kernel on top of an Ubuntu 20.04 image running the 5.10.10 mainline kernel in an AWS .metal instance (Nitro hypervisor).
First, check out the kernel sources. I'm using my own fork, with my customizations on top of stable/v5.10.10 tag.
cd ~/linux
git clone git@github.com:aghecenco/linux.git
git checkout my_awesome_branch