Kernel Compilation

From ArchWiki
Revision as of 02:43, 23 November 2010 by Thestinger (talk | contribs) (Using the Arch Build System: same link)
Jump to: navigation, search


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 simple and straightforward.

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.

If you are new to the process, the traditional way for new users may be appropriate.

Using the Arch Build System

There are various ways to use ABS to automate the process of building a customized kernel. 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.

Historically, there were quite a few articles out in the Wiki and in the Forums to accomplish this. Among them, the most popular are the following two:

See also this thread on the Forums.

However, all these methods had fundamental disadvantages: they became quickly out-of-date, they could be modified by anyone, etc. So, another strategy was proposed by big_gie, which is based on a one-line modification of the official kernel26 PKGBUILD. This is to be considered the standard procedure for small modifications to the stock -ARCH kernel, or even to the vanilla one, and is described in the article Kernel_Customization_with_kernel26_Package.

Using the AUR

There are in the AUR some packages for famous kernel flavors, like TuxOnIce, Zen, Con Kolivas patchset etc.

You can install them 'as is', or use them as a basis for your custom kernel instead of the official -ARCH one.

Links