Skip to content
Wiktor Nowicki edited this page Jan 26, 2021 · 1 revision

Building the kernel

Prism Linux images come prebundled with the latest Linux LTS release source code. they also are pre-patched and have a set up configuration file (reused from Arch Linux kernel configuration for a higher range of filesystem/hardware modules).

the images come with 2 different toolchains: GNU and LLVM. if you prefer GNU, you can safely avoid running the prism-env/env-helper.sh script under /usr/src/linux-<version>. however, if you prefer LLVM, you should run the script. rerun make menuconfig, adjust other settings if you need, save the new config and exit.

  1. run make. if you want to speed up the process, you can adjust the amount of jobs to amount of virtual processors, eg. if your processor supports 4 threads, you can run make -j4.

IMPORTANT: it may be required to add the inline modifier under some kernel C files, to avoid issues with linking base kernel binaries.

  1. run make modules_install.

  2. run make install. ignore the warning about the LILO bootloader, the above mentioned is only still supported for legacy reasons, LILO has been deprecated for quite a while now.

if you've done that, you should have a kernel with all modules and firmware (NOTE: the firmware is preinstalled) support installed.

Clone this wiki locally