Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 44807 | Differences between
and this patch

Collapse All | Expand All

(-)2.6-koutput-user.xml (-8 / +16 lines)
Lines 30-36 Link Here
30
old method:
30
old method:
31
</p>
31
</p>
32
32
33
<ol>
33
<ul>
34
  <li>
34
  <li>
35
  Arbitrary users can all use the same sources to build kernels, outputting
35
  Arbitrary users can all use the same sources to build kernels, outputting
36
  to some location in their home directory.
36
  to some location in their home directory.
Lines 47-53 Link Here
47
  External modules can be built without requiring write access to
47
  External modules can be built without requiring write access to
48
  <path>/usr/src/linux</path>
48
  <path>/usr/src/linux</path>
49
  </li>
49
  </li>
50
</ol>
50
</ul>
51
51
52
<p>
52
<p>
53
This last fact is important, as previously portage would need to be given
53
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:
58
kernel module emerges, you can use config-kernel:
59
</p>
59
</p>
60
60
61
<note>Not all of config-kernel's features are discussed in this guide. For the
61
<note>
62
rest of the information see <b>man config-kernel</b></note>
62
Not all of config-kernel's features are discussed in this guide. For the
63
rest of the information see <b>man config-kernel</b>
64
</note>
63
65
64
<pre caption="Enabling writing to /usr/src/linux">
66
<pre caption="Enabling writing to /usr/src/linux">
65
# <i>config-kernel --allow-writable yes</i>
67
# <i>config-kernel --allow-writable yes</i>
Lines 81-89 Link Here
81
83
82
<p>
84
<p>
83
2.6 kernels determine where to output their files based on two environmental
85
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
86
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
87
environmentally, and can then be overriden on the command line by specifying a
86
new <i>O</i> value. e.g.:
88
new <c>O</c> value. e.g.:
87
</p>
89
</p>
88
90
89
<pre caption="Setting an output by hand">
91
<pre caption="Setting an output by hand">
Lines 133-139 Link Here
133
<p>
135
<p>
134
The above command converts the kernel found in <path>/usr/src/linux-2.6.3</path>
136
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
137
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.
138
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
139
Otherwise, the Gentoo default of <path>/var/tmp/kernel-output/KV</path> will be
138
used.
140
used.
139
</p>
141
</p>
Lines 145-151 Link Here
145
<body>
147
<body>
146
148
147
<p>
149
<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>.
150
After configuring to use a different output directory, the changes go largly
151
unnoticed when configuring and installing a kernel. There are a few key file
152
location changes that you should be aware of though. The main files to be
153
concered with are .config, and the generated bzImage after compiling a kernel.
154
Below is a table showing the original and new locations for these key files. The
155
table assumes a 2.6.4 kernel outputting to the Gentoo default of
156
<path>/var/tmp/kernel-output/2.6.4</path>.
149
</p>
157
</p>
150
158
151
<table>
159
<table>

Return to bug 44807