Fix KBUILD_DEFCONFIG documentation
v2 cover Fix KBUILD_DEFCONFIG documentation
Signed-off-by Adam Blank <[email protected]>
---
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(-)
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.
Signed-off-by Adam Blank <[email protected]>
--- documentation/kernel-dev/common.rst | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)
documentation/kernel-dev/common.rst +3 -7
@@ -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`
PATCH v2 2/2 ref-manual/variables.rst: fix the description of KBUILD_DEFCONFIG
In reply to Adam BlankRemove some leftover confusing mention of KMACHINE.
Signed-off-by Adam Blank <[email protected]>
--- documentation/ref-manual/variables.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
documentation/ref-manual/variables.rst +1 -2
@@ -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
Antonin Godard
AppliedQuoted 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: 582ee9e0b4930aea03255542b3d3913df19af8b0Best regards,
Signature · 1 line
Antonin Godard <[email protected]>