Skip to contentSkip to conversation

Fix KBUILD_DEFCONFIG documentation

PATCH Applied Adam Blank 2 participants 4 messages Sep 29, 2025 – Oct 6, 2025

lore
Share & tools
lore

Adam Blank

author
#0 lore raw

v2 cover Fix KBUILD_DEFCONFIG documentation

---
Changes in v2:
- Reword and simplify

---
Adam Blank (2):
kernel-dev/common.rst: fix the in-tree defconfig description ref-manual/variables.rst: fix the description of KBUILD_DEFCONFIG

 documentation/kernel-dev/common.rst    | 10 +++-------
 documentation/ref-manual/variables.rst |  3 +--
 2 files changed, 4 insertions(+), 9 deletions(-)
author
#1 lore raw

PATCH v2 1/2 kernel-dev/common.rst: fix the in-tree defconfig description

The description of the relation between KBUILD_DEFCONFIG and SRC_URI is reversed. In fact it is the SRC_URI provided defconfig which will be dropped by the kernel-yocto class if both are provided.

---
 documentation/kernel-dev/common.rst | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)
documentation/kernel-dev/common.rst +3 -7
index 654c4e0a0..bd6c3fb2c 100644
@@ -650,13 +650,9 @@ the Broadcom 2708/2709 chipset::
 
    KBUILD_DEFCONFIG:raspberrypi2 ?= "bcm2709_defconfig"
 
-Aside from modifying your kernel recipe and providing your own
-``defconfig`` file, you need to be sure no files or statements set
-:term:`SRC_URI` to use a ``defconfig`` other than your "in-tree" file (e.g.
-a kernel's ``linux-``\ `machine`\ ``.inc`` file). In other words, if the
-build system detects a statement that identifies an "out-of-tree"
-``defconfig`` file, that statement will override your
-:term:`KBUILD_DEFCONFIG` variable.
+If the build system detects a statement that identifies an "out-of-tree"
+``defconfig`` file, your :term:`KBUILD_DEFCONFIG` variable will take precedence
+over it.
 
 See the
 :term:`KBUILD_DEFCONFIG`
author
#2 lore raw

PATCH v2 2/2 ref-manual/variables.rst: fix the description of KBUILD_DEFCONFIG

In reply to Adam Blank

Remove some leftover confusing mention of KMACHINE.

---
 documentation/ref-manual/variables.rst | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
documentation/ref-manual/variables.rst +1 -2
index 18ead7d04..2f9f1a9d8 100644
@@ -4892,8 +4892,7 @@ system and gives an overview of their function and contents.
       would place patch files and configuration fragment files (i.e.
       "out-of-tree"). However, if you want to use a ``defconfig`` file that
       is part of the kernel tree (i.e. "in-tree"), you can use the
-      :term:`KBUILD_DEFCONFIG` variable and append the
-      :term:`KMACHINE` variable to point to the
+      :term:`KBUILD_DEFCONFIG` variable to point to the
       ``defconfig`` file.
 
       To use the variable, set it in the append file for your kernel recipe
#3 lore raw
In reply to Adam Blank
Quoted 1 line · Adam Blank

Applied, thanks!

[1/2] kernel-dev/common.rst: fix the in-tree defconfig description

      commit: a808420655a0976ba08f013f468cf80f379b1d89
[2/2] ref-manual/variables.rst: fix the description of KBUILD_DEFCONFIG
      commit: 582ee9e0b4930aea03255542b3d3913df19af8b0

Best regards,

Signature · 1 line
Antonin Godard <[email protected]>