Skip to contentSkip to conversation

variables.rst: document uki.bbclass variables

PATCH In review Mikko Rapeli 2 participants 3 messages Nov 26, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 variables.rst: document uki.bbclass variables

Documentation for the new class.

[YOCTO #15650]
https://bugzilla.yoctoproject.org/show_bug.cgi?id=15650

---
 documentation/ref-manual/variables.rst | 32 ++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
documentation/ref-manual/variables.rst +32 -0
index ec4d7ab73f..9dac0b2d25 100644
@@ -9846,6 +9846,38 @@ system and gives an overview of their function and contents.
       passes and uses "all" for the target during the U-Boot building
       process.
 
+   :term:`UKIFY_CMD`
+      When inheriting the :ref:`ref-classes-uki` class,
+      `ukify <https://www.freedesktop.org/software/systemd/man/latest/ukify.html>`__ command to build
+      `Unified Kernel Image (UKI) <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
+      Defaults to ``ukify build``.
+
+   :term:`UKI_CONFIG_FILE`
+      When inheriting the :ref:`ref-classes-uki` class,
+      an optional config file for `ukify <https://www.freedesktop.org/software/systemd/man/latest/ukify.html>`__ command.
+
+   :term:`UKI_FILENAME`
+      When inheriting the :ref:`ref-classes-uki` class,
+      the output file name for generated `Unified Kernel Image (UKI) <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
+      Defaults to ``uki.efi``.
+
+   :term:`UKI_KERNEL_FILENAME`
+      When inheriting the :ref:`ref-classes-uki` class,
+      the kernel image file name to use as input. Defaults to :term:`KERNEL_IMAGETYPE`.
+
+   :term:`UKI_CMDLINE`
+      When inheriting the :ref:`ref-classes-uki` class,
+      the kernel command line to use when booting the `Unified Kernel Image (UKI) <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
+      Defaults to ``rootwait root=LABEL=root console=${KERNEL_CONSOLE}``.
+
+   :term:`UKI_SB_KEY`
+      When inheriting the :ref:`ref-classes-uki` class,
+      optional UEFI secureboot private key to sign `Unified Kernel Image (UKI) <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
+
+   :term:`UKI_SB_CERT`
+      When inheriting the :ref:`ref-classes-uki` class,
+      optional UEFI secureboot certificate mathing the private key in :term:`UKI_SB_KEY`.
+
    :term:`UNKNOWN_CONFIGURE_OPT_IGNORE`
       Specifies a list of options that, if reported by the configure script
       as being invalid, should not generate a warning during the
Signature · 1 line
2.43.0
#1 lore raw

Hi Mikko,

Quoted 15 lines · Mikko Rapeli via lists.yoctoproject.org

Documentation for the new class.

[YOCTO #15650]
https://bugzilla.yoctoproject.org/show_bug.cgi?id=15650

---
  documentation/ref-manual/variables.rst | 32 ++++++++++++++++++++++++++
  1 file changed, 32 insertions(+)
documentation/ref-manual/variables.rst +0 -0
index ec4d7ab73f..9dac0b2d25 100644

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 9850

Quoted 5 lines
documentation/ref-manual/variables.rst +2 -0
@@ -9846,6 +9846,38 @@ system and gives an overview of their function and contents.
        passes and uses "all" for the target during the U-Boot building
        process.
 
+   :term:`UKIFY_CMD`
+      When inheriting the :ref:`ref-classes-uki` class,

I don't see this reference defined anywhere, which we should have in documentation/ref-manual/classes.rst so that needs to be added as well.

EDIT: this is contributed in another patch, https://lore.kernel.org/yocto-docs/[email protected]/T/#u

Having both in the same patch series would have been appreciated, or at least mention in this patch that it depends on another patch so we don't forget in which order to merge them.

Quoted 12 lines
documentation/ref-manual/variables.rst +12 -0
+      `ukify <https://www.freedesktop.org/software/systemd/man/latest/ukify.html>`__ command to build
+      `Unified Kernel Image (UKI) <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
+      Defaults to ``ukify build``.
+
+   :term:`UKI_CONFIG_FILE`
+      When inheriting the :ref:`ref-classes-uki` class,
+      an optional config file for `ukify <https://www.freedesktop.org/software/systemd/man/latest/ukify.html>`__ command.
+
+   :term:`UKI_FILENAME`
+      When inheriting the :ref:`ref-classes-uki` class,
+      the output file name for generated `Unified Kernel Image (UKI) <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
+      Defaults to ``uki.efi``.

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 9872

Quoted 10 lines
documentation/ref-manual/variables.rst +10 -0
+
+   :term:`UKI_KERNEL_FILENAME`
+      When inheriting the :ref:`ref-classes-uki` class,
+      the kernel image file name to use as input. Defaults to :term:`KERNEL_IMAGETYPE`.
+
+   :term:`UKI_CMDLINE`
+      When inheriting the :ref:`ref-classes-uki` class,
+      the kernel command line to use when booting the `Unified Kernel Image (UKI) <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
+      Defaults to ``rootwait root=LABEL=root console=${KERNEL_CONSOLE}``.
+

Can we have this term ordered alphabetically too (just below UKIFY_CMD)?

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 9876

Quoted 4 lines
documentation/ref-manual/variables.rst +4 -0
+   :term:`UKI_SB_KEY`
+      When inheriting the :ref:`ref-classes-uki` class,
+      optional UEFI secureboot private key to sign `Unified Kernel Image (UKI) <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
+

Same here, please move this one below UKI_SB_CERT.

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 9879

Quoted 3 lines
documentation/ref-manual/variables.rst +3 -0
+   :term:`UKI_SB_CERT`
+      When inheriting the :ref:`ref-classes-uki` class,
+      optional UEFI secureboot certificate mathing the private key in :term:`UKI_SB_KEY`.

s/mathing/matching/

Cheers,
Quentin

#2 lore raw

Hi,

Quoted 26 lines · Quentin Schulz

Hi Mikko,

Quoted 15 lines · Mikko Rapeli via lists.yoctoproject.org

Documentation for the new class.

[YOCTO #15650]
https://bugzilla.yoctoproject.org/show_bug.cgi?id=15650

---
  documentation/ref-manual/variables.rst | 32 ++++++++++++++++++++++++++
  1 file changed, 32 insertions(+)
documentation/ref-manual/variables.rst +0 -0
index ec4d7ab73f..9dac0b2d25 100644

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 9849

Quoted 4 lines
documentation/ref-manual/variables.rst +2 -0
@@ -9846,6 +9846,38 @@ system and gives an overview of their function and contents.
        passes and uses "all" for the target during the U-Boot building
        process.
+   :term:`UKIFY_CMD`
+      When inheriting the :ref:`ref-classes-uki` class,

I don't see this reference defined anywhere, which we should have in documentation/ref-manual/classes.rst so that needs to be added as well.

Quoted 5 lines

EDIT: this is contributed in another patch, https://lore.kernel.org/yocto-docs/[email protected]/T/#u

Having both in the same patch series would have been appreciated, or at least mention in this patch that it depends on another patch so we don't forget in which order to merge them.

Sorry, done in v2.

Quoted 16 lines
Quoted 16 lines
documentation/ref-manual/variables.rst +16 -0
+      `ukify <https://www.freedesktop.org/software/systemd/man/latest/ukify.html>`__ command to build
+      `Unified Kernel Image (UKI) <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
+      Defaults to ``ukify build``.
+
+   :term:`UKI_CONFIG_FILE`
+      When inheriting the :ref:`ref-classes-uki` class,
+      an optional config file for `ukify <https://www.freedesktop.org/software/systemd/man/latest/ukify.html>`__ command.
+
+   :term:`UKI_FILENAME`
+      When inheriting the :ref:`ref-classes-uki` class,
+      the output file name for generated `Unified Kernel Image (UKI) <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
+      Defaults to ``uki.efi``.
+
+   :term:`UKI_KERNEL_FILENAME`
+      When inheriting the :ref:`ref-classes-uki` class,
+      the kernel image file name to use as input. Defaults to :term:`KERNEL_IMAGETYPE`.
Quoted 8 lines

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 9872

Quoted 6 lines
documentation/ref-manual/variables.rst +6 -0
+
+   :term:`UKI_CMDLINE`
+      When inheriting the :ref:`ref-classes-uki` class,
+      the kernel command line to use when booting the `Unified Kernel Image (UKI) <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
+      Defaults to ``rootwait root=LABEL=root console=${KERNEL_CONSOLE}``.
+

Can we have this term ordered alphabetically too (just below UKIFY_CMD)?

Done in v2.

Quoted 6 lines

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 9876

Quoted 4 lines
documentation/ref-manual/variables.rst +4 -0
+   :term:`UKI_SB_KEY`
+      When inheriting the :ref:`ref-classes-uki` class,
+      optional UEFI secureboot private key to sign `Unified Kernel Image (UKI) <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
+

Same here, please move this one below UKI_SB_CERT.

Done in v2.

Quoted 5 lines

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 9879

Quoted 3 lines
documentation/ref-manual/variables.rst +3 -0
+   :term:`UKI_SB_CERT`
+      When inheriting the :ref:`ref-classes-uki` class,
+      optional UEFI secureboot certificate mathing the private key in :term:`UKI_SB_KEY`.

s/mathing/matching/

Thanks, done in v2.

Cheers,

-Mikko