Difference between revisions of "Kernel Compilation"

From ArchWiki
Jump to navigation Jump to search
(Using the Arch Build System (ABS))
(60 intermediate revisions by 14 users not shown)
Line 1: Line 1:
[[Category:Kernel (English)]]
#REDIRECT [[Kernels#Compilation]]
[[Category:HOWTOs (English)]]
{{i18n_entry|English|Kernel Compilation}}
{{i18n_entry|Česky|Kompilace jádra (Česky)}}
{{i18n_entry|简体中文|Kernel Compilation (简体中文)}}
Arch Linux provides for several methods of kernel compilation.
The traditional way is probably the simplest but tedious if doing lots of recompiling: [[Kernel Compilation From Source|the traditional way]] '''or''' [[Kernel Compilation From Source For New Users Guide|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 [[ABS_-_The_Arch_Build_System|Arch Build System (ABS)]]=====
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 [http://bbs.archlinux.org/viewtopic.php?id=66253 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| Kernel Compilation with ABS]] and [[Custom_Kernel_Compilation_with_ABS|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 [http://aur.archlinux.org/packages.php?ID=23467 kernel26parallel] works very well.
== Links ==
* [http://www.kroah.com/lkn/ O'Reilly - Linux Kernel in a Nutshell] (free and opensource ebook covering configuration, installation and many more about the kernel)

Revision as of 19:59, 21 February 2012