kernel-dev: Updated changing the configuration section.
Robert P. J. Day pointed out some implied meanings in this section that indicate configurations from .config are exclusive somehow from configurations applied through config fragments. That is not the case. I have inserted a note to clear up that implied meaning. Reported-by: Robert P. J. Day <rpjday@crashcourse.ca> (From yocto-docs rev: 5ac27e8a2aea662a8e70dda0e852b5ea401b8b00) 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
2998ba7fe4
commit
97c48dbc6c
|
@ -148,13 +148,13 @@
|
|||
<para>
|
||||
You can make wholesale or incremental changes to the Linux
|
||||
kernel <filename>.config</filename> file by including a
|
||||
<filename>defconfig</filename> or by specifying
|
||||
<filename>defconfig</filename> and by specifying
|
||||
configuration fragments in the
|
||||
<ulink url='&YOCTO_DOCS_REF_URL;#var-SRC_URI'><filename>SRC_URI</filename></ulink>.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
If you have a complete Linux kernel <filename>.config</filename>
|
||||
If you have a final Linux kernel <filename>.config</filename>
|
||||
file you want to use, copy it to a directory named
|
||||
<filename>files</filename>, which must be in
|
||||
your layer's <filename>recipes-kernel/linux</filename>
|
||||
|
@ -165,8 +165,7 @@
|
|||
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
|
||||
SRC_URI += "file://defconfig"
|
||||
</literallayout>
|
||||
The
|
||||
<filename>SRC_URI</filename> tells the build system how to
|
||||
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
|
||||
|
@ -176,13 +175,26 @@
|
|||
configuration changes.
|
||||
</para>
|
||||
|
||||
<note>
|
||||
The build system applies the configurations from the
|
||||
<filename>.config</filename> file before applying any
|
||||
subsequent configuration fragments.
|
||||
The final kernel configuration is a combination of the
|
||||
configurations in the <filename>.config</filename> file and
|
||||
any configuration fragments you provide.
|
||||
You need to realize that if you have any configuration
|
||||
fragments, the build system applies these on top of and
|
||||
after applying the existing <filename>.config</filename>
|
||||
file configurations.
|
||||
</note>
|
||||
|
||||
<para>
|
||||
Generally speaking, the preferred approach is to determine the
|
||||
incremental change you want to make and add that as a
|
||||
configuration fragment.
|
||||
For example, if you want to add support for a basic serial
|
||||
console, create a file named <filename>8250.cfg</filename> in the
|
||||
<filename>files</filename> directory with the following
|
||||
console, create a file named <filename>8250.cfg</filename> in
|
||||
the <filename>files</filename> directory with the following
|
||||
content (without indentation):
|
||||
<literallayout class='monospaced'>
|
||||
CONFIG_SERIAL_8250=y
|
||||
|
|
Loading…
Reference in New Issue