summaryrefslogtreecommitdiffstats
path: root/documentation/ref-manual
diff options
context:
space:
mode:
authorAntonin Godard <antonin.godard@bootlin.com>2025-10-22 12:05:00 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-10-29 23:16:33 +0000
commitfafcdd9bb99a48d2e384a9c8b4289d60fd7f0c86 (patch)
tree38de82903c135f4d40063a972af154a542fa2d88 /documentation/ref-manual
parent4557ff9cfda5257673bde0fc2480d447f0b04139 (diff)
downloadpoky-fafcdd9bb99a48d2e384a9c8b4289d60fd7f0c86.tar.gz
ref-manual/classes.rst: uboot-config: improve documentation
Improve the documentation of the uboot-config class. It was not explaining any of its entry in UBOOT_CONFIG. Mention that using UBOOT_CONFIG and UBOOT_MACHINE at the same time is not possible. (From yocto-docs rev: 3bbd85798f4c9a8b7f930e9f156cf6e970593da0) Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/ref-manual')
-rw-r--r--documentation/ref-manual/classes.rst58
1 files changed, 52 insertions, 6 deletions
diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst
index f77f99f964..b92b9e28b3 100644
--- a/documentation/ref-manual/classes.rst
+++ b/documentation/ref-manual/classes.rst
@@ -3169,15 +3169,61 @@ variable using the "type" varflag. Here is an example::
3169``uboot-config`` 3169``uboot-config``
3170================ 3170================
3171 3171
3172The :ref:`ref-classes-uboot-config` class provides support for U-Boot configuration for 3172The :ref:`ref-classes-uboot-config` class provides support for configuring one
3173a machine. Specify the machine in your recipe as follows:: 3173or more U-Boot build configurations.
3174 3174
3175 UBOOT_CONFIG ??= <default> 3175There are two ways to configure the recipe for your machine:
3176 UBOOT_CONFIG[foo] = "config,images,binary"
3177 3176
3178You can also specify the machine using this method:: 3177- Using :term:`UBOOT_CONFIG` variable. For example::
3179 3178
3180 UBOOT_MACHINE = "config" 3179 UBOOT_CONFIG ??= "foo bar"
3180 UBOOT_CONFIG[foo] = "config,images,binary"
3181 UBOOT_CONFIG[bar] = "config2,images2,binary2"
3182
3183 In this example, all possible configurations are selected (``foo`` and
3184 ``bar``), but it is also possible to build only ``foo`` or ``bar`` by
3185 changing the value of :term:`UBOOT_CONFIG` to include either one or the
3186 other.
3187
3188 Each build configuration is associated to a variable flag definition of
3189 :term:`UBOOT_CONFIG`, that can take up to three comma-separated options
3190 (``config,images,binary``):
3191
3192 - ``config``: defconfig file selected for this build configuration.
3193 These files are found in the source tree's ``configs`` folder of U-Boot.
3194
3195 *This option is mandatory.*
3196
3197 - ``images``: image types to append to the :term:`IMAGE_FSTYPES` variable
3198 for image generation for this build configuration.
3199
3200 This can allow building an extra image format that uses the binary
3201 generated by this build configuration.
3202
3203 This option is not mandatory and can be left empty.
3204
3205 - ``binary``: binary to select as the one to deploy in
3206 :term:`DEPLOY_DIR_IMAGE`. The output of a U-Boot build may be more than
3207 one binary, for example::
3208
3209 u-boot.bin
3210 u-boot-with-spl.bin
3211
3212 Setting the ``binary`` value to ``u-boot-with-spl.bin`` will make this
3213 binary the one deployed in :term:`DEPLOY_DIR_IMAGE`. It is renamed to
3214 include the build configuration name in the process (``foo`` or ``bar`` in
3215 the above example).
3216
3217 This option defaults to :term:`UBOOT_BINARY` if unset.
3218
3219- Or, using the :term:`UBOOT_MACHINE` variable (and its companion variable
3220 :term:`UBOOT_BINARY`). For example::
3221
3222 UBOOT_MACHINE = "config"
3223 UBOOT_BINARY = "u-boot.bin"
3224
3225Using :term:`UBOOT_MACHINE` and :term:`UBOOT_CONFIG` at the same time is not
3226possible.
3181 3227
3182See the :term:`UBOOT_CONFIG` and :term:`UBOOT_MACHINE` variables for additional 3228See the :term:`UBOOT_CONFIG` and :term:`UBOOT_MACHINE` variables for additional
3183information. 3229information.