I am trying to compile the linux kernel into a binary (Trying to make a linux distro) on centos. I need a step by step walk through on how to do this.

closed as off-topic by Stephen Harris, Rui F Ribeiro, Jeff Schaller, G-Man, RalfFriedl Dec 6 at 6:45

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Requests for learning materials (tutorials, how-tos etc.) are off topic. The only exception is questions about where to find official documentation (e.g. POSIX specifications). See the Help Center and our Community Meta for more information." – Stephen Harris, Rui F Ribeiro, Jeff Schaller, G-Man, RalfFriedl
If this question can be reworded to fit the rules in the help center, please edit the question.

There are a lot of resources online for compiling the Linux Kernel.

For example, check out the kernel documentation on Linux From Scratch.

Linux From Scratch is also a great resource if you plan on making your own distro.

  • I may look into that. Thank You – lebro111 Dec 6 at 11:43
git clone --depth 1 --branch linux-4.19.y https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
cd linux
cp /boot/config-$(uname -r) .config
#use a config editing tool to automatically make it compatible with the version, and change any settings you want.
make
  • I am trying now.. hope it work!! oh yes and thank you. – lebro111 Dec 6 at 11:44
  • it did not work. – lebro111 Dec 6 at 11:56

Not the answer you're looking for? Browse other questions tagged or ask your own question.