Building a kernel
In order to build a kernel first it has to be configured.
There are several ways of 'make' config.
Read more about it in tutorial by Michiel Derhaeg.
We choose default configurations to build the new kernel.
You might need to install 'make' in order to do this.
Recommended: sudo apt-get install build-essential
Might require: bison, flex
Successful compiling will give you a .config file. This configuration needs to modified. We need all the modules in this .config to be in the core. To do that:
sed 's/=m/=y/' -i .config
Now it's time to make the kernel according to .config file.
Just commanding make would do it. But this is time consuming
process. If you use all the processors for this, you can run it faster.
Check how many processors you have in: "more /proc/cpuinfo"
If it's for 4,
make -j 4
If this fails because absent of dependencies, check the required dependencies in: https://www.debian.org/distrib/packages
and install them.
It might take while to complete depending upon your system.
At last if you will get something like below, Congratulations. You
have build a kernel.
Setup is 15548 bytes (padded to 15872 bytes). System is 8137 kBCRC eeaab0cfKernel: arch/x86/boot/bzImage is ready (#1)
This far from usable. In order make complete distro we need more
parts. Tomorrow we will make libc