diff options
author | Robert P. J. Day <rpjday@crashcourse.ca> | 2015-03-02 08:27:29 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-03-06 10:44:31 +0000 |
commit | b49a5ccc5b625abb97dd13bc43c6101eb13954dd (patch) | |
tree | 5cd20172224cf5588660dd49f3f6f8c741cbf508 /documentation | |
parent | bef8558f0e1a73107743417d8b2b772744ed9c28 (diff) | |
download | poky-b49a5ccc5b625abb97dd13bc43c6101eb13954dd.tar.gz |
kernel-dev: Clarify a couple minor things in kernel manual, ch 2.
Some small changes to clarify how to change the configuration.
(From yocto-docs rev: fce7c97abb69f15142dbadf90a90965a49ec3e0e)
Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/kernel-dev/kernel-dev-common.xml | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/documentation/kernel-dev/kernel-dev-common.xml b/documentation/kernel-dev/kernel-dev-common.xml index 56fa17d7d8..87cf2b3864 100644 --- a/documentation/kernel-dev/kernel-dev-common.xml +++ b/documentation/kernel-dev/kernel-dev-common.xml | |||
@@ -156,23 +156,27 @@ | |||
156 | <title>Changing the Configuration</title> | 156 | <title>Changing the Configuration</title> |
157 | 157 | ||
158 | <para> | 158 | <para> |
159 | You can make wholesale or incremental changes to the Linux | 159 | You can make wholesale or incremental changes to the final |
160 | kernel <filename>.config</filename> file by including a | 160 | <filename>.config</filename> file used for the eventual |
161 | <filename>defconfig</filename> and by specifying | 161 | Linux kernel configuration by including a |
162 | <filename>defconfig</filename> file and by specifying | ||
162 | configuration fragments in the | 163 | configuration fragments in the |
163 | <ulink url='&YOCTO_DOCS_REF_URL;#var-SRC_URI'><filename>SRC_URI</filename></ulink>. | 164 | <ulink url='&YOCTO_DOCS_REF_URL;#var-SRC_URI'><filename>SRC_URI</filename></ulink> |
165 | to be applied to that file. | ||
164 | </para> | 166 | </para> |
165 | 167 | ||
166 | <para> | 168 | <para> |
167 | If you have a final Linux kernel <filename>.config</filename> | 169 | If you have a complete, working Linux kernel |
168 | file you want to use, copy it to a directory named | 170 | <filename>.config</filename> |
169 | <filename>files</filename>, which must be in | 171 | file you want to use for the configuration, as before, copy |
170 | your layer's <filename>recipes-kernel/linux</filename> | 172 | that file to the appropriate <filename>${PN}</filename> |
171 | directory, and name the file "defconfig". | 173 | directory in your layer's |
172 | Then, add the following lines to your linux-yocto | 174 | <filename>recipes-kernel/linux</filename> directory, |
175 | and rename the copied file to "defconfig". | ||
176 | Then, add the following lines to the linux-yocto | ||
173 | <filename>.bbappend</filename> file in your layer: | 177 | <filename>.bbappend</filename> file in your layer: |
174 | <literallayout class='monospaced'> | 178 | <literallayout class='monospaced'> |
175 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | 179 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" |
176 | SRC_URI += "file://defconfig" | 180 | SRC_URI += "file://defconfig" |
177 | </literallayout> | 181 | </literallayout> |
178 | The <filename>SRC_URI</filename> tells the build system how to | 182 | The <filename>SRC_URI</filename> tells the build system how to |
@@ -181,7 +185,7 @@ | |||
181 | extends the | 185 | extends the |
182 | <ulink url='&YOCTO_DOCS_REF_URL;#var-FILESPATH'><filename>FILESPATH</filename></ulink> | 186 | <ulink url='&YOCTO_DOCS_REF_URL;#var-FILESPATH'><filename>FILESPATH</filename></ulink> |
183 | variable (search directories) to include the | 187 | variable (search directories) to include the |
184 | <filename>files</filename> directory you created for the | 188 | <filename>${PN}</filename> directory you created to hold the |
185 | configuration changes. | 189 | configuration changes. |
186 | </para> | 190 | </para> |
187 | 191 | ||