From 30d015c6362bce2bf6bbb2e60890431d8cd72403 Mon Sep 17 00:00:00 2001 From: Luca Ceresoli Date: Fri, 5 May 2023 11:10:06 +0200 Subject: 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: d99f7913ca3fc546a9714a38f3e22403261c4015) Signed-off-by: Luca Ceresoli Reviewed-by: Michael Opdenacker Signed-off-by: Steve Sakoman --- documentation/ref-manual/classes.rst | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'documentation/ref-manual') diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst index de2d97de30..8f7cbf2b45 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 :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 -- cgit v1.2.3-54-g00ecf