summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Rifenbark <scott.m.rifenbark@intel.com>2013-04-17 11:38:09 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-04-17 22:34:23 +0100
commita3d2886a472d70e4341c42cbb515539585e5ebce (patch)
treefd6eeba492229fa61f1b06228d6ffd8acb92df65
parent4bb60daf5acc46fd3ad8df99eb88f71bff399d26 (diff)
downloadpoky-a3d2886a472d70e4341c42cbb515539585e5ebce.tar.gz
kernel-dev: Edits to the "Changing the Configuration" section.
This section had some problems. It failed to mention the need to extend FILESPATH by using FILESEXTRAPATHS. (From yocto-docs rev: e627cf21242a62fb23e93fdae61e8cfce32082a9) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--documentation/kernel-dev/kernel-dev-common.xml26
1 files changed, 19 insertions, 7 deletions
diff --git a/documentation/kernel-dev/kernel-dev-common.xml b/documentation/kernel-dev/kernel-dev-common.xml
index 102d96c587..f0e95aca07 100644
--- a/documentation/kernel-dev/kernel-dev-common.xml
+++ b/documentation/kernel-dev/kernel-dev-common.xml
@@ -149,20 +149,31 @@
149 You can make wholesale or incremental changes to the Linux 149 You can make wholesale or incremental changes to the Linux
150 kernel <filename>.config</filename> file by including a 150 kernel <filename>.config</filename> file by including a
151 <filename>defconfig</filename> or by specifying 151 <filename>defconfig</filename> or by specifying
152 configuration fragments in the <filename>SRC_URI</filename>. 152 configuration fragments in the
153 <ulink url='&YOCTO_DOCS_REF_URL;#var-SRC_URI'><filename>SRC_URI</filename></ulink>.
153 </para> 154 </para>
154 155
155 <para> 156 <para>
156 If you have a complete Linux kernel <filename>.config</filename> 157 If you have a complete Linux kernel <filename>.config</filename>
157 file you want to use, copy it to a directory named 158 file you want to use, copy it to a directory named
158 <filename>files</filename>, which is in your 159 <filename>files</filename>, which must be in
159 layer's <filename>recipes-kernel/linux</filename> directory 160 your layer's <filename>recipes-kernel/linux</filename>
160 and name name the file "defconfig". 161 directory, and name the file "defconfig".
161 Then, add the following line to your linux-yocto 162 Then, add the following lines to your linux-yocto
162 <filename>.bbappend</filename> file in your layer: 163 <filename>.bbappend</filename> file in your layer:
163 <literallayout class='monospaced'> 164 <literallayout class='monospaced'>
165 FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
164 SRC_URI += "file://defconfig" 166 SRC_URI += "file://defconfig"
165 </literallayout> 167 </literallayout>
168 The
169 <filename>SRC_URI</filename> tells the build system how to
170 search for the file, while the
171 <ulink url='&YOCTO_DOCS_REF_URL;#var-FILESEXTRAPATHS'><filename>FILESEXTRAPATHS</filename></ulink>
172 extends the
173 <ulink url='&YOCTO_DOCS_REF_URL;#var-FILESPATH'><filename>FILESPATH</filename></ulink>
174 variable (search directories) to include the
175 <filename>files</filename> directory you created for the
176 configuration changes.
166 </para> 177 </para>
167 178
168 <para> 179 <para>
@@ -182,10 +193,11 @@
182 CONFIG_SERIAL_CORE=y 193 CONFIG_SERIAL_CORE=y
183 CONFIG_SERIAL_CORE_CONSOLE=y 194 CONFIG_SERIAL_CORE_CONSOLE=y
184 </literallayout> 195 </literallayout>
185 Next, include this configuration fragment in a 196 Next, include this configuration fragment and extend the
186 <filename>SRC_URI</filename> statement in your 197 <filename>FILESPATH</filename> variable in your
187 <filename>.bbappend</filename> file: 198 <filename>.bbappend</filename> file:
188 <literallayout class='monospaced'> 199 <literallayout class='monospaced'>
200 FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
189 SRC_URI += "file://8250.cfg" 201 SRC_URI += "file://8250.cfg"
190 </literallayout> 202 </literallayout>
191 The next time you run BitBake to build the Linux kernel, BitBake 203 The next time you run BitBake to build the Linux kernel, BitBake