Skip to contentSkip to conversation

bitbake-user-manual: Documenting BB_CMDLINE

PATCH Superseded Swami 3 participants 4 messages Dec 4, 2025

v5 of 7 Superseded Latest is v7 →

lore
Share & tools
lore

Swami

author
#0 lore raw

PATCH v5 1/1 bitbake-user-manual: Documenting BB_CMDLINE

Add documentation for the internal read-only variable :term:BB_CMDLINE. Fixes [YOCTO #15746]

---
 doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst | 4 ++++
 1 file changed, 4 insertions(+)
doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +4 -0
index 734c7858a..00b28519a 100644
@@ -116,6 +116,10 @@ overview of their function and contents.
       Specifies if SSL certificates should be checked when fetching. The default
       value is ``1`` and certificates are not checked if the value is set to ``0``.
 
+   :term:`BB_CMDLINE`
+      :term:`BB_CMDLINE` is an internal variable and is read-only. It captures the exact
+      command line used for the current invocation of BitBake.
+      
    :term:`BB_HASH_CODEPARSER_VALS`
       Specifies values for variables to use when populating the codeparser cache.
       This can be used selectively to set dummy values for variables to avoid
#1 lore raw

Hi Swani

Thanks for the update!

Quoted 12 lines · Swami

Add documentation for the internal read-only variable :term:BB_CMDLINE. Fixes [YOCTO #15746]

---
  doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst | 4 ++++
  1 file changed, 4 insertions(+)
doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +0 -0
index 734c7858a..00b28519a 100644

doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst overview of their function and contents. · line 122

Quoted 7 lines
doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +4 -0
@@ -116,6 +116,10 @@ overview of their function and contents.
        Specifies if SSL certificates should be checked when fetching. The default
        value is ``1`` and certificates are not checked if the value is set to ``0``.
 
+   :term:`BB_CMDLINE`
+      :term:`BB_CMDLINE` is an internal variable and is read-only. It captures the exact
+      command line used for the current invocation of BitBake.
+

Oops, you have unnecessary spaces in your last line. Please remove them. My editor flags those and this is distracting for a reviewer. Unless Antonin prefers to fix this by himself.

If you send a V6, you can also move "the exact" to the next line. Otherwise, your line is longer than 80 characters and it also stands out a little bit.

Sorry, documentation patches are the most difficult ones 😅 Thanks for your patience!
Cheers
Michael.

Signature · 4 lines
Michael Opdenacker
Root Commit
Yocto Project and OpenEmbedded Training course - Learn by doing:
https://rootcommit.com/training/yocto/
author
#2 lore raw

Thanks Michael,
I will do the changes and submit a new patch.
I picked up documentation assuming it would be easy :)
Many thanks to you,Antonin, for bearing with my endless patches for such a small change.
On the positive side, I am getting comfortable with the steps by this repetition.
Unfortunately , that is adding to much back and forth
Hope I can nail it with the next patch.

regards
Swami

Quoted 51 lines · Michael Opdenacker

Hi Swani

Thanks for the update!

Quoted 8 lines · Swami

Add documentation for the internal read-only variable :term:BB_CMDLINE. Fixes [YOCTO #15746]

---
  doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst | 4 ++++
  1 file changed, 4 insertions(+)

diff --git

a/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst b/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst

doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst overview of their function and contents. · line 116

Quoted 5 lines

index 734c7858a..00b28519a 100644

doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +0 -0
@@ -116,6 +116,10 @@ overview of their function and contents.
        Specifies if SSL certificates should be checked when fetching.

The default

doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst overview of their function and contents. · line 117

Quoted 1 line
doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +0 -0
        value is ``1`` and certificates are not checked if the value is

set to ``0``.

doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst overview of their function and contents. · line 119

Quoted 3 lines
doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +2 -0
+   :term:`BB_CMDLINE`
+      :term:`BB_CMDLINE` is an internal variable and is read-only. It

captures the exact

doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst overview of their function and contents. · line 122

Quoted 2 lines
doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +2 -0
+      command line used for the current invocation of BitBake.
+

Oops, you have unnecessary spaces in your last line. Please remove them. My editor flags those and this is distracting for a reviewer. Unless Antonin prefers to fix this by himself.

If you send a V6, you can also move "the exact" to the next line. Otherwise, your line is longer than 80
characters and it also stands out a little bit.

Sorry, documentation patches are the most difficult ones 😅 Thanks for your patience!
Cheers
Michael.

--
Michael Opdenacker
Root Commit
Yocto Project and OpenEmbedded Training course - Learn by doing:
https://rootcommit.com/training/yocto/

#3 lore raw

Hi Swani,

Quoted 9 lines · Swami via lists.openembedded.org

Thanks Michael,
I will do the changes and submit a new patch.
I picked up documentation assuming it would be easy :)
Many thanks to you,Antonin, for bearing with my endless patches for such a small change.
On the positive side, I am getting comfortable with the steps by this repetition.
Unfortunately , that is adding to much back and forth
Hope I can nail it with the next patch.

No problem, that's part of the learning process and once that's settled in, you'll have less and less iterations on patches. :) We are happy to welcome new contributors.

I can also suggest b4 which does makes things a bit easier to manage patches:
https://b4.docs.kernel.org/en/latest/

I can't make the modifications locally though, as I don't merge things on the bitbake (only yocto-docs). Please send a new version of the patch, that's fine!

Thank you,
Antonin

Signature · 3 lines
Antonin Godard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com