Lines 7-25
Link Here
|
7 |
<author title="Developer"> |
7 |
<author title="Developer"> |
8 |
<mail link="latexer@gentoo.org">Peter Johanson</mail> |
8 |
<mail link="latexer@gentoo.org">Peter Johanson</mail> |
9 |
</author> |
9 |
</author> |
10 |
|
10 |
<author title="Editor"> |
11 |
<license/> |
11 |
<mail link="antifa@gentoo.org">Ken Nowack</mail> |
|
|
12 |
</author> |
13 |
<author title="Editor"> |
14 |
<mail link="bennyc@gentoo.org">Benny Chuang</mail> |
15 |
</author> |
12 |
|
16 |
|
13 |
<abstract> |
17 |
<abstract> |
14 |
This guide covers how to use Gentoo's new "koutput" method to handle 2.6 |
18 |
This guide covers how to use Gentoo's new "koutput" method to handle 2.6 |
15 |
kernels and kernel modules. |
19 |
kernels and kernel modules. |
16 |
</abstract> |
20 |
</abstract> |
17 |
|
21 |
|
|
|
22 |
<license/> |
23 |
|
18 |
<version>1.0</version> |
24 |
<version>1.0</version> |
19 |
<date>March 14, 2004</date> |
25 |
<date>March 14, 2004</date> |
20 |
|
26 |
|
21 |
<chapter> |
27 |
<chapter> |
22 |
<title>Overview</title> |
28 |
<title>Overview</title> |
|
|
29 |
<section> |
23 |
<body> |
30 |
<body> |
24 |
|
31 |
|
25 |
<p> |
32 |
<p> |
Lines 30-36
Link Here
|
30 |
old method: |
37 |
old method: |
31 |
</p> |
38 |
</p> |
32 |
|
39 |
|
33 |
<ol> |
40 |
<ul> |
34 |
<li> |
41 |
<li> |
35 |
Arbitrary users can all use the same sources to build kernels, outputting |
42 |
Arbitrary users can all use the same sources to build kernels, outputting |
36 |
to some location in their home directory. |
43 |
to some location in their home directory. |
Lines 47-53
Link Here
|
47 |
External modules can be built without requiring write access to |
54 |
External modules can be built without requiring write access to |
48 |
<path>/usr/src/linux</path> |
55 |
<path>/usr/src/linux</path> |
49 |
</li> |
56 |
</li> |
50 |
</ol> |
57 |
</ul> |
51 |
|
58 |
|
52 |
<p> |
59 |
<p> |
53 |
This last fact is important, as previously portage would need to be given |
60 |
This last fact is important, as previously portage would need to be given |
Lines 58-65
Link Here
|
58 |
kernel module emerges, you can use config-kernel: |
65 |
kernel module emerges, you can use config-kernel: |
59 |
</p> |
66 |
</p> |
60 |
|
67 |
|
61 |
<note>Not all of config-kernel's features are discussed in this guide. For the |
68 |
<note> |
62 |
rest of the information see <b>man config-kernel</b></note> |
69 |
Not all of config-kernel's features are discussed in this guide. For the |
|
|
70 |
rest of the information see <b>man config-kernel</b> |
71 |
</note> |
63 |
|
72 |
|
64 |
<pre caption="Enabling writing to /usr/src/linux"> |
73 |
<pre caption="Enabling writing to /usr/src/linux"> |
65 |
# <i>config-kernel --allow-writable yes</i> |
74 |
# <i>config-kernel --allow-writable yes</i> |
Lines 74-89
Link Here
|
74 |
</pre> |
83 |
</pre> |
75 |
|
84 |
|
76 |
</body> |
85 |
</body> |
|
|
86 |
</section> |
77 |
</chapter> |
87 |
</chapter> |
78 |
<chapter> |
88 |
<chapter> |
79 |
<title>Enabling koutput</title> |
89 |
<title>Enabling koutput</title> |
|
|
90 |
<section> |
80 |
<body> |
91 |
<body> |
81 |
|
92 |
|
82 |
<p> |
93 |
<p> |
83 |
2.6 kernels determine where to output their files based on two environmental |
94 |
2.6 kernels determine where to output their files based on two environmental |
84 |
variables, <i>KBUILD_OUTPUT</i> and <i>O</i>. <i>KBUILD_OUTPUT</i> should be set |
95 |
variables, <c>KBUILD_OUTPUT</c> and <c>O</c>. <c>KBUILD_OUTPUT</c> should be set |
85 |
environmentally, and can then be overriden on the command line by specifying a |
96 |
environmentally, and can then be overriden on the command line by specifying a |
86 |
new <i>O</i> value. e.g.: |
97 |
new <c>O</c> value. e.g.: |
87 |
</p> |
98 |
</p> |
88 |
|
99 |
|
89 |
<pre caption="Setting an output by hand"> |
100 |
<pre caption="Setting an output by hand"> |
Lines 133-151
Link Here
|
133 |
<p> |
144 |
<p> |
134 |
The above command converts the kernel found in <path>/usr/src/linux-2.6.3</path> |
145 |
The above command converts the kernel found in <path>/usr/src/linux-2.6.3</path> |
135 |
to outputting to a different directory. If the output directory has been set |
146 |
to outputting to a different directory. If the output directory has been set |
136 |
previously with <i>--output-dir=foo</i>, then that prefix will be used. |
147 |
previously with <c>--output-dir=foo</c>, then that prefix will be used. |
137 |
Otherwise, the Gentoo default of <path>/var/tmp/kernel-output/KV</path> will be |
148 |
Otherwise, the Gentoo default of <path>/var/tmp/kernel-output/KV</path> will be |
138 |
used. |
149 |
used. |
139 |
</p> |
150 |
</p> |
140 |
|
151 |
|
141 |
</body> |
152 |
</body> |
|
|
153 |
</section> |
142 |
</chapter> |
154 |
</chapter> |
143 |
<chapter> |
155 |
<chapter> |
144 |
<title>Repercussions</title> |
156 |
<title>Repercussions</title> |
|
|
157 |
<section> |
145 |
<body> |
158 |
<body> |
146 |
|
159 |
|
147 |
<p> |
160 |
<p> |
148 |
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 <path>/var/tmp/kernel-output/2.6.4</path>. |
161 |
After configuring to use a different output directory, the changes go largly |
|
|
162 |
unnoticed when configuring and installing a kernel. There are a few key file |
163 |
location changes that you should be aware of though. The main files to be |
164 |
concered with are .config, and the generated bzImage after compiling a kernel. |
165 |
Below is a table showing the original and new locations for these key files. The |
166 |
table assumes a 2.6.4 kernel outputting to the Gentoo default of |
167 |
<path>/var/tmp/kernel-output/2.6.4</path>. |
149 |
</p> |
168 |
</p> |
150 |
|
169 |
|
151 |
<table> |
170 |
<table> |
Lines 164-169
Link Here
|
164 |
</table> |
183 |
</table> |
165 |
|
184 |
|
166 |
</body> |
185 |
</body> |
|
|
186 |
</section> |
167 |
</chapter> |
187 |
</chapter> |
168 |
|
|
|
169 |
</guide> |
188 |
</guide> |