diff options
| -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 | ||
