This directory contains scripts and source to fully automate
patching and compiling of the kernel and modules. The result is also
packaged into a kernel source SFS and to kernel binary and headers
PET packages.
Instructions
Download everything that you see here, except for the 'output' directory and the
'kernel_src' SFS file, to /usr/src, that is:
With a terminal open in directory /usr/src,
expand all of those files, make sure that the 'execute' flags are set
on the scripts. Rename the file DOTconfig* as just 'DOTconfig'.
You also need the base linux source, for example linux-4.4.tar.bz2 for
all 4.4.x.
Download the source to /usr/src. Don't expand it, the 1kernel.sh script will do
that, and apply the sub-version patch (for example 4.4.6 patch).
That's it, you are ready to go. Run the three scripts in sequence, starting with:
# ./1kernel.sh
Notes
It is recommended that you compile the kernel in the same
version/family of Linux for which you intend to use the kernel.
The kernel is sensitive to the version of 'gcc' (the Gnu C compiler)
used to compile it, and later on if a user wants to compile any
3rd-party kernel driver, it is necessary that they should be using the
same version of gcc.