As a convenient and quick reference, the following are the key steps required to build a Linux kernel from source. As the explanation for each of them is pretty detailed, you can refer back to this summary to see the bigger picture. The steps are as follows:
- Obtain a Linux kernel source tree through either of the following options:
- Downloading a specific kernel source as a compressed file
- Cloning a (kernel) Git tree
- Extract the kernel source tree into some location in your home directory (skip this step if you obtained a kernel by cloning a Git tree).
- Configuration: Select the kernel support options as required for the new kernel,
make [x|g|menu]config, with make menuconfig being the preferred way. - Build the kernel's loadable modules and any Device Tree Blobs (DTBs) with make [-j'n'] all. This builds the compressed kernel image (arch/<arch>/boot/[b|z|u]image), the uncompressed kernel image (vmlinux), System...