--- 2.6-koutput-user.xml 2004-03-25 16:09:08.000000000 +0000 +++ 2.6-koutput-user.xml.benny 2004-03-25 16:24:20.000000000 +0000 @@ -7,19 +7,26 @@ Peter Johanson - - + + Ken Nowack + + + Benny Chuang + This guide covers how to use Gentoo's new "koutput" method to handle 2.6 kernels and kernel modules. + + 1.0 March 14, 2004 Overview +

@@ -30,7 +37,7 @@ old method:

-
    +
    • Arbitrary users can all use the same sources to build kernels, outputting to some location in their home directory. @@ -47,7 +54,7 @@ External modules can be built without requiring write access to /usr/src/linux
    • -
+

This last fact is important, as previously portage would need to be given @@ -58,8 +65,10 @@ kernel module emerges, you can use config-kernel:

-Not all of config-kernel's features are discussed in this guide. For the -rest of the information see man config-kernel + +Not all of config-kernel's features are discussed in this guide. For the +rest of the information see man config-kernel +
 # config-kernel --allow-writable yes
@@ -74,16 +83,18 @@
 
+
Enabling koutput +

2.6 kernels determine where to output their files based on two environmental -variables, KBUILD_OUTPUT and O. KBUILD_OUTPUT should be set +variables, KBUILD_OUTPUT and O. KBUILD_OUTPUT should be set environmentally, and can then be overriden on the command line by specifying a -new O value. e.g.: +new O value. e.g.:

@@ -133,19 +144,27 @@
 

The above command converts the kernel found in /usr/src/linux-2.6.3 to outputting to a different directory. If the output directory has been set -previously with --output-dir=foo, then that prefix will be used. +previously with --output-dir=foo, then that prefix will be used. Otherwise, the Gentoo default of /var/tmp/kernel-output/KV will be used.

+
Repercussions +

-After configuring a kernel to use a different output directory, the changes go largly unnoticed when configuring and isntalling a kernel. A few key files change locations that you should be aware of though. The main files to be concered with are .config, and the generated bzImage after compiling a kernel. Below is a table showing the original and new locations for some key files. We assume the kernel is a 2.6.4 kernel outputting to the Gentoo default of /var/tmp/kernel-output/2.6.4. +After configuring to use a different output directory, the changes go largly +unnoticed when configuring and installing a kernel. There are a few key file +location changes that you should be aware of though. The main files to be +concered with are .config, and the generated bzImage after compiling a kernel. +Below is a table showing the original and new locations for these key files. The +table assumes a 2.6.4 kernel outputting to the Gentoo default of +/var/tmp/kernel-output/2.6.4.

@@ -164,6 +183,6 @@
+
-