summaryrefslogtreecommitdiffstats
path: root/documentation/ref-manual
diff options
context:
space:
mode:
authorLuca Ceresoli <luca.ceresoli@bootlin.com>2023-05-05 11:10:06 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-05-06 09:38:58 +0100
commit8cba63f668d33d88d121fdd14201d04cb8164f2a (patch)
tree652babcf35809580db2dbafe34eb2f344bb6d59a /documentation/ref-manual
parenta019f55a2875c146c062ce65f957d4dc4842d7a8 (diff)
downloadpoky-8cba63f668d33d88d121fdd14201d04cb8164f2a.tar.gz
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>
Diffstat (limited to 'documentation/ref-manual')
-rw-r--r--documentation/ref-manual/classes.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst
index 83691646aa..ab1628401e 100644
--- a/documentation/ref-manual/classes.rst
+++ b/documentation/ref-manual/classes.rst
@@ -1532,6 +1532,13 @@ code to build all kernel trees. All needed headers are staged into the
1532:term:`STAGING_KERNEL_DIR` directory to allow out-of-tree module builds 1532:term:`STAGING_KERNEL_DIR` directory to allow out-of-tree module builds
1533using the :ref:`ref-classes-module` class. 1533using the :ref:`ref-classes-module` class.
1534 1534
1535If a file named ``defconfig`` is listed in :term:`SRC_URI`, then by default
1536:ref:`ref-tasks-configure` copies it as ``.config`` in the build directory,
1537so it is automatically used as the kernel configuration for the build. This
1538copy is not performed in case ``.config`` already exists there: this allows
1539recipes to produce a configuration by other means in
1540``do_configure:prepend``.
1541
1535Each built kernel module is packaged separately and inter-module 1542Each built kernel module is packaged separately and inter-module
1536dependencies are created by parsing the ``modinfo`` output. If all modules 1543dependencies are created by parsing the ``modinfo`` output. If all modules
1537are required, then installing the ``kernel-modules`` package installs all 1544are required, then installing the ``kernel-modules`` package installs all