Kernel Compilation
From ArchWiki
i18n |
---|
English |
Česky |
简体中文 |
Contents |
Choices
Arch Linux provides for several methods of kernel compilation.
Traditional
The traditional way is probably the simplest but tedious if doing lots of recompiling: the traditional way or the traditional way for new users
This method involves manually downloading a source tarball, and building in your home directory as normal user. Once configured, two compilation/installation methods are offered; the traditional manual method as well as makepkg/pacman.
Using the Arch Build System
There are a few ways to use ABS to automate the process of building a customized kernel. Currently there is no universal way to do this and you can pick which way works best for your build needs. Note that many of these methods require altering PKGBUILD scripts so it is recommended that you become very familiar with ABS on other packages before using it to build the kernel. See this thread on the forums for some discussion of building with ABS.
- The first method is to simply use the script from /var/abs/core/kernel26. This is how the official arch kernel is packaged, but note this PKGBUILD was not created with customizing in mind. It is not too difficult to modify this if you are making minor changes to the official kernel.
- There are two methods described on the wiki for using abs: Kernel Compilation with ABS and Custom Kernel Compilation with ABS. Each have a different philosophy so pick the one that suits you. Both of these may be out of date and require some editing.
- Search the AUR for users submitted ABS packages. I have found kernel26parallel works very well.
Links
- O'Reilly - Linux Kernel in a Nutshell (free and opensource ebook covering configuration, installation and many more about the kernel)