Difference between revisions of "Kernel Compilation"

From ArchWiki
Jump to: navigation, search
(Using the Arch Build System (ABS))
m (fixed what I caused)
Line 17: Line 17:
 
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.
 
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)]]=====
+
=====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 [http://bbs.archlinux.org/viewtopic.php?id=66253 this thread] on the forums for some discussion of building with 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.

Revision as of 20:17, 30 November 2009

Template:I18n links start Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n links end

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.
  • Search the AUR for users submitted ABS packages. I have found kernel26parallel works very well.

Links