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>
This commit is contained in:
parent
4bb60daf5a
commit
a3d2886a47
|
@ -149,20 +149,31 @@
|
||||||
You can make wholesale or incremental changes to the Linux
|
You can make wholesale or incremental changes to the Linux
|
||||||
kernel <filename>.config</filename> file by including a
|
kernel <filename>.config</filename> file by including a
|
||||||
<filename>defconfig</filename> or by specifying
|
<filename>defconfig</filename> or by specifying
|
||||||
configuration fragments in the <filename>SRC_URI</filename>.
|
configuration fragments in the
|
||||||
|
<ulink url='&YOCTO_DOCS_REF_URL;#var-SRC_URI'><filename>SRC_URI</filename></ulink>.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
If you have a complete Linux kernel <filename>.config</filename>
|
If you have a complete Linux kernel <filename>.config</filename>
|
||||||
file you want to use, copy it to a directory named
|
file you want to use, copy it to a directory named
|
||||||
<filename>files</filename>, which is in your
|
<filename>files</filename>, which must be in
|
||||||
layer's <filename>recipes-kernel/linux</filename> directory
|
your layer's <filename>recipes-kernel/linux</filename>
|
||||||
and name name the file "defconfig".
|
directory, and name the file "defconfig".
|
||||||
Then, add the following line to your linux-yocto
|
Then, add the following lines to your linux-yocto
|
||||||
<filename>.bbappend</filename> file in your layer:
|
<filename>.bbappend</filename> file in your layer:
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
|
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
|
||||||
SRC_URI += "file://defconfig"
|
SRC_URI += "file://defconfig"
|
||||||
</literallayout>
|
</literallayout>
|
||||||
|
The
|
||||||
|
<filename>SRC_URI</filename> tells the build system how to
|
||||||
|
search for the file, while the
|
||||||
|
<ulink url='&YOCTO_DOCS_REF_URL;#var-FILESEXTRAPATHS'><filename>FILESEXTRAPATHS</filename></ulink>
|
||||||
|
extends the
|
||||||
|
<ulink url='&YOCTO_DOCS_REF_URL;#var-FILESPATH'><filename>FILESPATH</filename></ulink>
|
||||||
|
variable (search directories) to include the
|
||||||
|
<filename>files</filename> directory you created for the
|
||||||
|
configuration changes.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
@ -182,10 +193,11 @@
|
||||||
CONFIG_SERIAL_CORE=y
|
CONFIG_SERIAL_CORE=y
|
||||||
CONFIG_SERIAL_CORE_CONSOLE=y
|
CONFIG_SERIAL_CORE_CONSOLE=y
|
||||||
</literallayout>
|
</literallayout>
|
||||||
Next, include this configuration fragment in a
|
Next, include this configuration fragment and extend the
|
||||||
<filename>SRC_URI</filename> statement in your
|
<filename>FILESPATH</filename> variable in your
|
||||||
<filename>.bbappend</filename> file:
|
<filename>.bbappend</filename> file:
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
|
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
|
||||||
SRC_URI += "file://8250.cfg"
|
SRC_URI += "file://8250.cfg"
|
||||||
</literallayout>
|
</literallayout>
|
||||||
The next time you run BitBake to build the Linux kernel, BitBake
|
The next time you run BitBake to build the Linux kernel, BitBake
|
||||||
|
|
Loading…
Reference in New Issue