Fully automated kernel compile


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:
1kernel.sh.gz
1recompile.sh.gz
2modules.sh.gz
3packages.sh.gz
3rd-party.tar.gz
DOTconfig*.gz
patches.tar.gz
linux-*.tar.bz2
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.


Regards,
Barry Kauler
September, 2017
http://bkhome.org/news/