1.4.2 Kernel dependencies

In order to compile the kernel you will need to install some dependencies. You will need ‘libelf’, and ‘bison’ to compile the kernel. If you want to configure using the menu interface you will also need ‘ncurses’.

# The package manager asks to install if you are building more than one package,
# so no need to run 'cpt i ...'
cpt b libelf ncurses

In the vanilla kernel sources, you need perl to compile the kernel, but it can be easily patched out. You will need to apply the following patch. Patch was written by E5ten. You will need to obtain and apply the patch in the kernel source directory.

wget https://dl.carbslinux.org/distfiles/kernel-no-perl.patch
patch -p1 < kernel-no-perl.patch