mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 18:49:32 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
bef8558f0e
commit
b49a5ccc5b
@@ -156,23 +156,27 @@
|
|||||||
<title>Changing the Configuration</title>
|
<title>Changing the Configuration</title>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
You can make wholesale or incremental changes to the Linux
|
You can make wholesale or incremental changes to the final
|
||||||
kernel <filename>.config</filename> file by including a
|
<filename>.config</filename> file used for the eventual
|
||||||
<filename>defconfig</filename> and by specifying
|
Linux kernel configuration by including a
|
||||||
|
<filename>defconfig</filename> file and by specifying
|
||||||
configuration fragments in the
|
configuration fragments in the
|
||||||
<ulink url='&YOCTO_DOCS_REF_URL;#var-SRC_URI'><filename>SRC_URI</filename></ulink>.
|
<ulink url='&YOCTO_DOCS_REF_URL;#var-SRC_URI'><filename>SRC_URI</filename></ulink>
|
||||||
|
to be applied to that file.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
If you have a final Linux kernel <filename>.config</filename>
|
If you have a complete, working Linux kernel
|
||||||
file you want to use, copy it to a directory named
|
<filename>.config</filename>
|
||||||
<filename>files</filename>, which must be in
|
file you want to use for the configuration, as before, copy
|
||||||
your layer's <filename>recipes-kernel/linux</filename>
|
that file to the appropriate <filename>${PN}</filename>
|
||||||
directory, and name the file "defconfig".
|
directory in your layer's
|
||||||
Then, add the following lines to your linux-yocto
|
<filename>recipes-kernel/linux</filename> directory,
|
||||||
|
and rename the copied file to "defconfig".
|
||||||
|
Then, add the following lines to the 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:"
|
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
|
||||||
SRC_URI += "file://defconfig"
|
SRC_URI += "file://defconfig"
|
||||||
</literallayout>
|
</literallayout>
|
||||||
The <filename>SRC_URI</filename> tells the build system how to
|
The <filename>SRC_URI</filename> tells the build system how to
|
||||||
@@ -181,7 +185,7 @@
|
|||||||
extends the
|
extends the
|
||||||
<ulink url='&YOCTO_DOCS_REF_URL;#var-FILESPATH'><filename>FILESPATH</filename></ulink>
|
<ulink url='&YOCTO_DOCS_REF_URL;#var-FILESPATH'><filename>FILESPATH</filename></ulink>
|
||||||
variable (search directories) to include the
|
variable (search directories) to include the
|
||||||
<filename>files</filename> directory you created for the
|
<filename>${PN}</filename> directory you created to hold the
|
||||||
configuration changes.
|
configuration changes.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user