Lines 33-39
Link Here
|
33 |
The 2.6 kernel, among other things, provides many enhancements to the kernel |
33 |
The 2.6 kernel, among other things, provides many enhancements to the kernel |
34 |
build infrastructure, or "kbuild system." Among the features that have been |
34 |
build infrastructure, or "kbuild system." Among the features that have been |
35 |
added, the 2.6 kernel now allows all of the files created by the kernel to be |
35 |
added, the 2.6 kernel now allows all of the files created by the kernel to be |
36 |
output to a arbitrary seperate location. This has several advantages over the |
36 |
output to a arbitrary separate location. This has several advantages over the |
37 |
old method: |
37 |
old method: |
38 |
</p> |
38 |
</p> |
39 |
|
39 |
|
Lines 99-110
Link Here
|
99 |
</p> |
99 |
</p> |
100 |
|
100 |
|
101 |
<note> |
101 |
<note> |
102 |
Gentoo's <b>sandbox</b> is system that prevents portage from writing to the live |
102 |
Gentoo's <b>sandbox</b> is a system that prevents portage from writing to the |
103 |
filesystem until the final merge step of the package installation. |
103 |
live filesystem until the final merge step of the package installation. |
104 |
</note> |
104 |
</note> |
105 |
|
105 |
|
106 |
<p> |
106 |
<p> |
107 |
Several dependant steps can be taken to resolve this issue. In short, kernel |
107 |
Several dependent steps can be taken to resolve this issue. In short, kernel |
108 |
builds must output all of their files to a different location when they are |
108 |
builds must output all of their files to a different location when they are |
109 |
compiled, and later external module compiles must <b>also</b> do this, only they |
109 |
compiled, and later external module compiles must <b>also</b> do this, only they |
110 |
output to some subdirectory of the temporary build location. By letting the |
110 |
output to some subdirectory of the temporary build location. By letting the |
Lines 123-129
Link Here
|
123 |
<p> |
123 |
<p> |
124 |
2.6 kernels determine where to output their files based on two environmental |
124 |
2.6 kernels determine where to output their files based on two environmental |
125 |
variables, <c>KBUILD_OUTPUT</c> and <c>O</c>. <c>KBUILD_OUTPUT</c> should be set |
125 |
variables, <c>KBUILD_OUTPUT</c> and <c>O</c>. <c>KBUILD_OUTPUT</c> should be set |
126 |
environmentally, and can then be overriden on the command line by specifying a |
126 |
environmentally, and can then be overridden on the command line by specifying a |
127 |
new <c>O</c> value. e.g.: |
127 |
new <c>O</c> value. e.g.: |
128 |
</p> |
128 |
</p> |
129 |
|
129 |
|
Lines 188-197
Link Here
|
188 |
<body> |
188 |
<body> |
189 |
|
189 |
|
190 |
<p> |
190 |
<p> |
191 |
After configuring to use a different output directory, the changes go largly |
191 |
After configuring to use a different output directory, the changes go largely |
192 |
unnoticed when configuring and installing a kernel. There are a few key file |
192 |
unnoticed when configuring and installing a kernel. There are a few key file |
193 |
location changes that you should be aware of though. The main files to be |
193 |
location changes that you should be aware of though. The main files to be |
194 |
concered with are .config, and the generated bzImage after compiling a kernel. |
194 |
concerned with are .config, and the generated bzImage after compiling a kernel. |
195 |
Below is a table showing the original and new locations for these key files. The |
195 |
Below is a table showing the original and new locations for these key files. The |
196 |
table assumes a 2.6.4 kernel outputting to the Gentoo default of |
196 |
table assumes a 2.6.4 kernel outputting to the Gentoo default of |
197 |
<path>/var/tmp/kernel-output/2.6.4</path>. |
197 |
<path>/var/tmp/kernel-output/2.6.4</path>. |