Difference between revisions of "Kernel Compilation"

From ArchWiki
Jump to: navigation, search
m (yo -> to)
m (Using the AUR)
Line 34: Line 34:
 
=====Using the [[AUR]]=====
 
=====Using the [[AUR]]=====
  
There are in the AUR some packages for famous kernel flavours, like [http://aur.archlinux.org/packages.php?ID=15224 TuxOnIce], [http://aur.archlinux.org/packages.php?ID=30330 Zen], etc.
+
There are in the AUR some packages for famous kernel flavors, like [http://aur.archlinux.org/packages.php?ID=15224 TuxOnIce], [http://aur.archlinux.org/packages.php?ID=30330 Zen], [[http://aur.archlinux.org/packages.php?ID=32877 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.
 
You can install them 'as is', or use them as a basis for your custom kernel instead of the official -ARCH one.

Revision as of 13:47, 30 May 2010


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