Skip to contentSkip to conversation

ref-manual: classes: kernel: remove incorrect sentence opening

PATCH In review Luca Ceresoli 2 participants 5 messages May 5, 2023 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ref-manual: classes: kernel: remove incorrect sentence opening

"This means that" implies that this sentence is a consequence of the previous, but this is not the case, the two sentences being quite unrelated to each other.

---
 documentation/ref-manual/classes.rst | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
documentation/ref-manual/classes.rst +5 -5
index a78368b380f6..de2d97de3038 100644
@@ -1532,11 +1532,11 @@ 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.
 
-This means that 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 packages with modules and various other kernel
-packages such as ``kernel-vmlinux``.
+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
+packages with modules and various other kernel packages such as
+``kernel-vmlinux``.
 
 The :ref:`ref-classes-kernel` class contains logic that allows you to embed an initial
 RAM filesystem (:term:`Initramfs`) image when you build the kernel image. For
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/2 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.

---
 documentation/ref-manual/classes.rst | 7 +++++++
 1 file changed, 7 insertions(+)
documentation/ref-manual/classes.rst +7 -0
index de2d97de3038..8f7cbf2b456e 100644
@@ -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
Signature · 1 line
2.34.1
#2 lore raw

Re: [docs] [PATCH 2/2] ref-manual: classes: kernel: document automatic defconfig usage

Quoted 4 lines · Luca Ceresoli via lists.yoctoproject.org

Since a very long time the kernel bbclass uses a defconfig file from SRC_URI automatically. Document this feature.

Hi Luca,

That's great to document this behavior. Good catch!
For both patches: Reviewed-by: Michael Opdenacker <[email protected]> ... and merged into "master-next".

Cheers
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw

Re: [docs] [PATCH 2/2] ref-manual: classes: kernel: document automatic defconfig usage

Hi Luca,

Quoted 5 lines · Michael Opdenacker via lists.yoctoproject.org
Quoted 3 lines · Luca Ceresoli via lists.yoctoproject.org

Since a very long time the kernel bbclass uses a defconfig file from SRC_URI automatically. Document this feature.

Quoted 8 lines
Quoted 1 line

Hi Luca,

That's great to document this behavior. Good catch!
For both patches: Reviewed-by: Michael Opdenacker <[email protected]> ... and merged into "master-next".

Oops, I realize you should run a few git commands to have a proper identity in your git commits.

See https://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded#Fixing_your_From_identity

Don't need to send your patches again, I will fix your last two commits by myself.

Thanks in advance for next time.
Cheers
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#5 lore raw

Re: [docs] [PATCH 2/2] ref-manual: classes: kernel: document automatic defconfig usage

Hi Mike,

Quoted 19 lines · On Fri, 5 May 2023 18:40:21 +0200 Michael Opdenacker…

Hi Luca,

Quoted 8 lines · Michael Opdenacker via lists.yoctoproject.org
Quoted 4 lines · Luca Ceresoli via lists.yoctoproject.org

Since a very long time the kernel bbclass uses a defconfig file from SRC_URI automatically. Document this feature.

Quoted 6 lines

Hi Luca,

That's great to document this behavior. Good catch! For both patches: Reviewed-by: Michael Opdenacker <[email protected]>
... and merged into "master-next".

Quoted 8 lines

Oops, I realize you should run a few git commands to have a proper identity in your git commits.

See
https://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded#Fixing_your_From_identity

Don't need to send your patches again, I will fix your last two commits by myself.

My bad, I forgot to add --identity=yocto when running git send-email! I now added it to the local git config for the various yocto repositories, so it hopefully won't happen again.

Quoted 1 line

Thanks in advance for next time.

Thank you very much!

Cheers,
Luca

Signature · 3 lines
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com