Requirements

Compilation tools

Building and installing a new Linux kernel is a process that requires compiling software from source code and properly installing the resulting binaries in the right place for the system to use them.

However, most Linux distributions do not provide by default the tools needed for compiling source code. In these distros, a few tools need to be installed before compiling the kernel.

Note

Consult your distribution documentation for the exact steps to get these tools completely installed for the specific release of your system distribution.

Building tools in phyglos

In the phy GNU/Linux operating system all the tools needed for this process are already installed by default and no further preparation is needed.

Building tools in Debian

Install compilation tools like gcc or make from the Debian repositories along with some libraries:

# apt-get install bc gcc make flex bison libelf-dev libssl-dev

In order to use the menuconfig utility, install the ncurses development libraries.

# apt-get install libncurses5-dev

Building tools in Fedora

Install compilation tools like gcc or make from the Fedora repositories along with some libraries:

# dnf install gcc make flex bison

In order to use the menuconfig utility, install the ncurses development libraries.

# dnf install ncurses-devel

The BANDIT

The process of building and installing the Linux kernel can be automated with the help of the BANDIT toolkit and the phyglos-kernel bundle from the phyglos catalog.

Note

You do not need the BANDIT to use the linux-configs. See Build the Linux kernel from source to build the kernel manually.

BANDIT in phyglos

In the phy GNU/Linux operating system, the BANDIT is already installed. You can, however, install additional copies of the BANDIT to work with a clean toolkit and not changing the main copy.

BANDIT in other distributions

See The BANDIT Handbook to learn how to install the BANDIT in other distributions or a second copy of the toolkit.