mirror of
https://git.yoctoproject.org/poky
synced 2026-04-04 23:02:22 +02:00
ref-manual: classes: kernel: document automatic defconfig usage
Since a very long time the kernel bbclass uses a defconfig file from SRC_URI automatically. Document this feature. (From yocto-docs rev: 220b25d7d47d46b0d85c616b88ead75fab917092) Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
a019f55a28
commit
8cba63f668
@@ -1532,6 +1532,13 @@ code to build all kernel trees. All needed headers are staged into the
|
||||
:term:`STAGING_KERNEL_DIR` directory to allow out-of-tree module builds
|
||||
using the :ref:`ref-classes-module` class.
|
||||
|
||||
If a file named ``defconfig`` is listed in :term:`SRC_URI`, then by default
|
||||
:ref:`ref-tasks-configure` copies it as ``.config`` in the build directory,
|
||||
so it is automatically used as the kernel configuration for the build. This
|
||||
copy is not performed in case ``.config`` already exists there: this allows
|
||||
recipes to produce a configuration by other means in
|
||||
``do_configure:prepend``.
|
||||
|
||||
Each built kernel module is packaged separately and inter-module
|
||||
dependencies are created by parsing the ``modinfo`` output. If all modules
|
||||
are required, then installing the ``kernel-modules`` package installs all
|
||||
|
||||
Reference in New Issue
Block a user