Skip to contentSkip to conversation

ref-manual/variables.rst: document WIC_CREATE_EXTRA_ARGS

PATCH Superseded Trevor Woerner 2 participants 5 messages May 6, 2025 – May 13, 2025

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ref-manual/variables.rst: document WIC_CREATE_EXTRA_ARGS

Fixes [YOCTO #15509]

---
 documentation/ref-manual/variables.rst | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
documentation/ref-manual/variables.rst +18 -0
index d17f81036b7d..29f34f5b029d 100644
@@ -10942,6 +10942,24 @@ system and gives an overview of their function and contents.
       Specifies the timeout in seconds used by the ``watchdog-config`` recipe
       and also by ``systemd`` during reboot. The default is 60 seconds.
 
+   :term:`WIC_CREATE_EXTRA_ARGS`
+      If the :term:`IMAGE_FSTYPES` variable contains "wic", the build
+      will generate a Wic image automatically when BitBake builds an
+      image recipe. As part of this process the Wic bbclass will call the
+      "`wic create`" command. The `WIC_CREATE_EXTRA_ARGS` variable is
+      appended to the internal "`wic create`" command to provide a
+      mechanism for the user to supply extra arguments to the
+      "`wic create`" command that is automatically run by BitBake.
+
+      One such useful purpose for this mechanism is to add the "-D|--debug"
+      argument to the "`wic create`" command. This increases the amount of
+      debugging information written out to the Wic log during the Wic creation
+      process.
+
+      For more information about creating Wic images, see the
+      ":ref:`dev-manual/wic:creating partitioned images using wic`" section in
+      the Yocto Project Development Tasks Manual.
+
    :term:`WIC_SECTOR_SIZE`
       The variable :term:`WIC_SECTOR_SIZE` controls the sector size of Wic
       images. In the background, this controls the value of the
Signature · 1 line
2.44.0.501.g19981daefd7c
#1 lore raw

Hi Trevor,

Quoted 12 lines · Trevor Woerner via lists.yoctoproject.org

Fixes [YOCTO #15509]

---
  documentation/ref-manual/variables.rst | 18 ++++++++++++++++++
  1 file changed, 18 insertions(+)
documentation/ref-manual/variables.rst +0 -0
index d17f81036b7d..29f34f5b029d 100644

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

Quoted 6 lines
documentation/ref-manual/variables.rst +3 -0
@@ -10942,6 +10942,24 @@ system and gives an overview of their function and contents.
        Specifies the timeout in seconds used by the ``watchdog-config`` recipe
        and also by ``systemd`` during reboot. The default is 60 seconds.
 
+   :term:`WIC_CREATE_EXTRA_ARGS`
+      If the :term:`IMAGE_FSTYPES` variable contains "wic", the build
+      will generate a Wic image automatically when BitBake builds an

Maybe we could point Wic image to https://docs.yoctoproject.org/dev-manual/wic.html#creating-partitioned-images-using-wic?

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

Quoted 1 line
documentation/ref-manual/variables.rst +1 -0
+      image recipe. As part of this process the Wic bbclass will call the

There's no wic bbclass. I think you meant to say image_types_wic bbclass? It would be nice to provide a :ref: there but we actually do not have the class explained yet so cannot do a :ref:ref-classes-image_types_wic like we could for image_types.

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

Quoted 5 lines
documentation/ref-manual/variables.rst +5 -0
+      "`wic create`" command. The `WIC_CREATE_EXTRA_ARGS` variable is
+      appended to the internal "`wic create`" command to provide a
+      mechanism for the user to supply extra arguments to the
+      "`wic create`" command that is automatically run by BitBake.
+

A bit too many

the "wic create" command

to my taste, can suggest:

To allow the user to supply extra arguments, the WIC_CREATE_EXTRA_ARGS variable is appended to the internal "wic create" command that is automatically run by BitBake.

What do you think?

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

Quoted 1 line
documentation/ref-manual/variables.rst +1 -0
+      One such useful purpose for this mechanism is to add the "-D|--debug"

-D (or --debug)

maybe? I believe this would otherwise break the search or not be crystal clear what the option is supposed to be.

Looks good to me otherwise,

Cheers,
Quentin

#2 lore raw
Quoted 10 lines · Quentin Schulz

Hi Trevor,

Quoted 7 lines · Trevor Woerner via lists.yoctoproject.org

Fixes [YOCTO #15509]

---
  documentation/ref-manual/variables.rst | 18 ++++++++++++++++++
  1 file changed, 18 insertions(+)
Quoted 12 lines

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

Quoted 10 lines
documentation/ref-manual/variables.rst +3 -0
index d17f81036b7d..29f34f5b029d 100644
@@ -10942,6 +10942,24 @@ system and gives an overview of their function and contents.
        Specifies the timeout in seconds used by the ``watchdog-config`` recipe
        and also by ``systemd`` during reboot. The default is 60 seconds.
+   :term:`WIC_CREATE_EXTRA_ARGS`
+      If the :term:`IMAGE_FSTYPES` variable contains "wic", the build
+      will generate a Wic image automatically when BitBake builds an

Maybe we could point Wic image to https://docs.yoctoproject.org/dev-manual/wic.html#creating-partitioned-images-using-wic?

ok

Quoted 3 lines

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

Quoted 1 line
documentation/ref-manual/variables.rst +1 -0
+      image recipe. As part of this process the Wic bbclass will call the

There's no wic bbclass.

I know. That's why I didn't write "wic.bbclass". I wrote, generically, the Wic bbclass.

Quoted 4 lines

I think you meant to say image_types_wic bbclass? It
would be nice to provide a :ref: there but we actually do not have the class explained yet so cannot do a :ref:ref-classes-image_types_wic like we could for image_types.

I didn't want to give a specific name and wanted to write something that would be immune from changes in the bbclass's name. Also, layers might implement their own bbclass that uses wic, so I wanted to include those as well.

Quoted 11 lines

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

Quoted 6 lines
documentation/ref-manual/variables.rst +5 -0
+      "`wic create`" command. The `WIC_CREATE_EXTRA_ARGS` variable is
+      appended to the internal "`wic create`" command to provide a
+      mechanism for the user to supply extra arguments to the
+      "`wic create`" command that is automatically run by BitBake.
+

A bit too many

the "wic create" command

Quoted 8 lines

to my taste, can suggest:

To allow the user to supply extra arguments,
the WIC_CREATE_EXTRA_ARGS variable is
appended to the internal "wic create" command
that is automatically run by BitBake.

What do you think?

sounds good

Quoted 3 lines

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

Quoted 1 line
documentation/ref-manual/variables.rst +1 -0
+      One such useful purpose for this mechanism is to add the "-D|--debug"

-D (or --debug)

ok

Quoted 7 lines

maybe? I believe this would otherwise break the search or not be crystal clear what the option is supposed to be.

Looks good to me otherwise,

Cheers,
Quentin

#3 lore raw

Hi Trevor,

Quoted 4 lines · Trevor Woerner
Quoted 3 lines · Quentin Schulz

Hi Trevor,

On 5/6/25 7:23 PM, Trevor Woerner via lists.yoctoproject.org wrote:

[...]

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

+ image recipe. As part of this process the Wic bbclass will call the

There's no wic bbclass.

I know. That's why I didn't write "wic.bbclass". I wrote, generically, the Wic bbclass.

Quoted 9 lines
Quoted 4 lines

I think you meant to say image_types_wic bbclass? It
would be nice to provide a :ref: there but we actually do not have the class explained yet so cannot do a :ref:ref-classes-image_types_wic like we could for image_types.

I didn't want to give a specific name and wanted to write something that would be immune from changes in the bbclass's name. Also, layers might implement their own bbclass that uses wic, so I wanted to include those as well.

If they have their own bbclass that uses wic, they wouldn't necessarily be using WIC_CREATE_EXTRA_ARGS as this variable is specific to image_types_wic.bbclass, we also already list the name of some classes so it isn't a new problem.

Cheers,
Quentin

#4 lore raw
Quoted 27 lines · Quentin Schulz

Hi Trevor,

Quoted 4 lines · Trevor Woerner
Quoted 3 lines · Quentin Schulz

Hi Trevor,

On 5/6/25 7:23 PM, Trevor Woerner via lists.yoctoproject.org wrote:

[...]

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

+ image recipe. As part of this process the Wic bbclass will call the

There's no wic bbclass.

I know. That's why I didn't write "wic.bbclass". I wrote, generically, the Wic bbclass.

Quoted 9 lines
Quoted 4 lines

I think you meant to say image_types_wic bbclass? It
would be nice to provide a :ref: there but we actually do not have the class explained yet so cannot do a :ref:ref-classes-image_types_wic like we could for image_types.

I didn't want to give a specific name and wanted to write something that would be immune from changes in the bbclass's name. Also, layers might implement their own bbclass that uses wic, so I wanted to include those as well.

Quoted 4 lines

If they have their own bbclass that uses wic, they wouldn't necessarily be using WIC_CREATE_EXTRA_ARGS as this variable is specific to image_types_wic.bbclass, we also already list the name of some classes so it isn't a new problem.

I'll just rewrite the part to avoid mentioning the bbclass. How the command is invoked is irrelevant.