Automate most of the manual tasks described in the Arch Build System to build a custom kernel.
make
Once build is finished, you can install the kernel packages with the following commands:
cd build/package
pacman -U *.tar.zst
Before running this script, you need to install and configure modprobed , then run
make modprobed
Add configuration in file patches/config
, then just run
make
Note that you can also use custom config with modprobed
task
As described in makepkg doc, you can build the
kernel faster by setting the following options in /etc/makepkg.conf
:
MAKEFLAGS="-j$(nproc)"
BUILDDIR=/tmp/makepkg