diff options
| author | Luca Ceresoli <luca.ceresoli@bootlin.com> | 2023-05-05 11:10:06 +0200 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2023-05-10 04:16:51 -1000 |
| commit | 30d015c6362bce2bf6bbb2e60890431d8cd72403 (patch) | |
| tree | e7cb0045d3254a8f38f7613634b983ebb99917a9 /documentation/ref-manual | |
| parent | cd1e4106e64aba670631fffc22a82bab346c879c (diff) | |
| download | poky-30d015c6362bce2bf6bbb2e60890431d8cd72403.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: d99f7913ca3fc546a9714a38f3e22403261c4015)
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'documentation/ref-manual')
| -rw-r--r-- | documentation/ref-manual/classes.rst | 7 |
1 files changed, 7 insertions, 0 deletions
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 | |||
| 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 |
| 1533 | using the :ref:`ref-classes-module` class. | 1533 | using the :ref:`ref-classes-module` class. |
| 1534 | 1534 | ||
| 1535 | If 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, | ||
| 1537 | so it is automatically used as the kernel configuration for the build. This | ||
| 1538 | copy is not performed in case ``.config`` already exists there: this allows | ||
| 1539 | recipes to produce a configuration by other means in | ||
| 1540 | ``do_configure:prepend``. | ||
| 1541 | |||
| 1535 | Each built kernel module is packaged separately and inter-module | 1542 | Each built kernel module is packaged separately and inter-module |
| 1536 | dependencies are created by parsing the ``modinfo`` output. If all modules | 1543 | dependencies are created by parsing the ``modinfo`` output. If all modules |
| 1537 | are required, then installing the ``kernel-modules`` package installs all | 1544 | are required, then installing the ``kernel-modules`` package installs all |
