diff options
Diffstat (limited to 'documentation/kernel-dev')
-rw-r--r-- | documentation/kernel-dev/kernel-dev-common.xml | 26 |
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 |