Skip to contentSkip to conversation

kernel-dev: simplify local references

PATCH New [email protected] 1 participant 1 message Mar 3, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel-dev: simplify local references

From: Michael Opdenacker <[email protected]>

- Simplify references to sections within the same document
- Take advantage of this to fix line width in the modified paragraphs.

---
 documentation/kernel-dev/advanced.rst      | 43 +++++-------
 documentation/kernel-dev/common.rst        | 82 ++++++++--------------
 documentation/kernel-dev/concepts-appx.rst |  2 +-
 documentation/kernel-dev/intro.rst         |  2 +-
 4 files changed, 50 insertions(+), 79 deletions(-)
documentation/kernel-dev/advanced.rst +17 -26
index 35195135c4..d0632e333b 100644
@@ -57,7 +57,7 @@ the same "intel-corei7-64" value for :term:`KMACHINE`. It is important to
 realize that :term:`KMACHINE` is just for kernel mapping, while :term:`MACHINE`
 is the machine type within a BSP Layer. Even with this distinction,
 however, these two variables can hold the same value. See the
-":ref:`kernel-dev/advanced:bsp descriptions`" section for more information.
+"`BSP Descriptions`_" section for more information.
 
 Every linux-yocto style recipe must also indicate the Linux kernel
 source repository branch used to build the Linux kernel. The
@@ -86,7 +86,7 @@ Together with :term:`KMACHINE`, :term:`LINUX_KERNEL_TYPE` defines the search
 arguments used by the kernel tools to find the appropriate description
 within the kernel Metadata with which to build out the sources and
 configuration. The linux-yocto recipes define "standard", "tiny", and
-"preempt-rt" kernel types. See the ":ref:`kernel-dev/advanced:kernel types`"
+"preempt-rt" kernel types. See the "`Kernel Types`_"
 section for more information on kernel types.
 
 During the build, the kern-tools search for the BSP description file
@@ -120,7 +120,7 @@ the entries in :term:`KERNEL_FEATURES` are dependent on their location
 within the kernel Metadata itself. The examples here are taken from the
 ``yocto-kernel-cache`` repository. Each branch of this repository
 contains "features" and "cfg" subdirectories at the top-level. For more
-information, see the ":ref:`kernel-dev/advanced:kernel metadata syntax`"
+information, see the "`Kernel Metadata Syntax`_"
 section.
 
 Kernel Metadata Syntax
@@ -145,7 +145,7 @@ Features aggregate sources in the form of patches and configuration
 fragments into a modular reusable unit. You can use features to
 implement conceptually separate kernel Metadata descriptions such as
 pure configuration fragments, simple patches, complex features, and
-kernel types. :ref:`kernel-dev/advanced:kernel types` define general kernel
+kernel types. `Kernel Types`_ define general kernel
 features and policy to be reused in the BSPs.
 
 BSPs define hardware-specific features and aggregate them with kernel
@@ -163,7 +163,7 @@ following Metadata file hierarchy is recommended::
       ktypes/
       patches/
 
-The ``bsp`` directory contains the :ref:`kernel-dev/advanced:bsp descriptions`.
+The ``bsp`` directory contains the `BSP Descriptions`_.
 The remaining directories all contain "features". Separating ``bsp`` from the
 rest of the structure aids conceptualizing intended usage.
 
@@ -190,15 +190,11 @@ impact on the functionality of the kernel Metadata. There is no impact
 because all of ``cfg``, ``features``, ``patches``, and ``ktypes``,
 contain "features" as far as the kernel tools are concerned.
 
-Paths used in kernel Metadata files are relative to base, which is
-either
-:term:`FILESEXTRAPATHS` if
-you are creating Metadata in
-:ref:`recipe-space <kernel-dev/advanced:recipe-space metadata>`,
-or the top level of
+Paths used in kernel Metadata files are relative to base, which is either
+:term:`FILESEXTRAPATHS` if you are creating Metadata in
+`Recipe-Space Metadata`_, or the top level of
 :yocto_git:`yocto-kernel-cache </yocto-kernel-cache/tree/>`
-if you are creating
-:ref:`kernel-dev/advanced:metadata outside the recipe-space`.
+if you are creating `Metadata Outside the Recipe-Space`_.
 
 .. [1]
    ``scc`` stands for Series Configuration Control, but the naming has
@@ -345,9 +341,8 @@ as how an additional feature description file is included with the
 Typically, features are less granular than configuration fragments and
 are more likely than configuration fragments and patches to be the types
 of things you want to specify in the :term:`KERNEL_FEATURES` variable of the
-Linux kernel recipe. See the
-":ref:`kernel-dev/advanced:using kernel metadata in a recipe`" section earlier
-in the manual.
+Linux kernel recipe. See the "`Using Kernel Metadata in a Recipe`_" section
+earlier in the manual.
 
 Kernel Types
 ------------
@@ -356,7 +351,7 @@ A kernel type defines a high-level kernel policy by aggregating non-hardware
 configuration fragments with patches you want to use when building a Linux
 kernel of a specific type (e.g. a real-time kernel). Syntactically, kernel
 types are no different than features as described in the
-":ref:`kernel-dev/advanced:features`" section. The :term:`LINUX_KERNEL_TYPE`
+"`Features`_" section. The :term:`LINUX_KERNEL_TYPE`
 variable in the kernel recipe selects the kernel type. For example, in the
 ``linux-yocto_4.12.bb`` kernel recipe found in ``poky/meta/recipes-kernel/linux``, a
 :ref:`require <bitbake-user-manual/bitbake-user-manual-metadata:\`\`require\`\` directive>`
@@ -376,8 +371,7 @@ type as follows::
    You can find kernel recipes in the ``meta/recipes-kernel/linux`` directory
    of the :ref:`overview-manual/development-environment:yocto project source repositories`
    (e.g. ``poky/meta/recipes-kernel/linux/linux-yocto_4.12.bb``). See the
-   ":ref:`kernel-dev/advanced:using kernel metadata in a recipe`"
-   section for more information.
+   "`Using Kernel Metadata in a Recipe`_" section for more information.
 
 Three kernel types ("standard", "tiny", and "preempt-rt") are supported
 for Linux Yocto kernels:
@@ -440,8 +434,7 @@ and ``patch`` commands, respectively.
    It is not strictly necessary to create a kernel type ``.scc``
    file. The Board Support Package (BSP) file can implicitly define the
    kernel type using a ``define`` :term:`KTYPE` ``myktype`` line. See the
-   ":ref:`kernel-dev/advanced:bsp descriptions`" section for more
-   information.
+   "`BSP descriptions`_" section for more information.
 
 BSP Descriptions
 ----------------
@@ -523,8 +516,7 @@ example, this is done using the following::
 
 This file aggregates all the configuration
 fragments, patches, and features that make up your standard kernel
-policy. See the ":ref:`kernel-dev/advanced:kernel types`" section for more
-information.
+policy. See the "`Kernel Types`_" section for more information.
 
 To aggregate common configurations and features specific to the kernel
 for `mybsp`, use the following::
@@ -795,11 +787,10 @@ Given this scenario, you do not need to create any branches in the
 source repository. Rather, you just take the static patches you need and
 encapsulate them within a feature description. Once you have the feature
 description, you simply include that into the BSP description as
-described in the ":ref:`kernel-dev/advanced:bsp descriptions`" section.
+described in the "`BSP Descriptions`_" section.
 
 You can find information on how to create patches and BSP descriptions
-in the ":ref:`kernel-dev/advanced:patches`" and
-":ref:`kernel-dev/advanced:bsp descriptions`" sections.
+in the "`Patches`_" and "`BSP Descriptions`_" sections.
 
 Machine Branches
 ----------------
documentation/kernel-dev/common.rst +31 -51

193 lines not on this page · raw message

documentation/kernel-dev/concepts-appx.rst +1 -1
index 6a2fe4bb0b..bcac7effe6 100644
@@ -327,7 +327,7 @@ host system when you build the kernel using BitBake. This
 
 Again, for additional information on the Yocto Project kernel's
 architecture and its branching strategy, see the
-":ref:`kernel-dev/concepts-appx:yocto linux kernel architecture and branching strategies`"
+"`Yocto Linux Kernel Architecture and Branching Strategies`_"
 section. You can also reference the
 ":ref:`kernel-dev/common:using \`\`devtool\`\` to patch the kernel`"
 and
documentation/kernel-dev/intro.rst +1 -1
index a663733a1d..564247afeb 100644
@@ -90,7 +90,7 @@ understand the following documentation:
 -  The ":ref:`dev-manual/layers:understanding and creating layers`"
    section in the Yocto Project Development Tasks Manual.
 
--  The ":ref:`kernel-dev/intro:kernel modification workflow`" section.
+-  The "`Kernel Modification Workflow`_" section.
 
 Kernel Modification Workflow
 ============================
Signature · 1 line
2.37.2