Skip to contentSkip to conversation

bitbake-user-manual: Documenting BB_CMDLINE

PATCH Superseded Swami 3 participants 3 messages Dec 3, 2025

v4 of 7 Superseded Latest is v7 →

lore
Share & tools
lore

Swami

author
#0 lore raw

PATCH v4 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..f49ce0f9f 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
Reviewed-by on v4 1/1
#1 lore raw

Hi Swami

Thanks for the update and your patience :)

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..f49ce0f9f 100644

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

Quoted 10 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.
+
     :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

Looks all good to me.

Signature · 4 lines
Michael Opdenacker
Root Commit
Yocto Project and OpenEmbedded Training course - Learn by doing:
https://rootcommit.com/training/yocto/
Reviewed-by on v4 1/1
#2 lore raw
In reply to Swami

Hi Swami,

Quoted 14 lines · Swami via lists.openembedded.org

[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]

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..f49ce0f9f 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.
+

This is inconsistent with the indentation on the rest of the file, we align with three whitespaces. So here the second and third line you're adding should have six whitespaces to start with and not eight like in this patch. Would be best to have it fixed, but the generated file isn't impacted by this, so not a blocker IMO.

The content makes sense to me after reading the code, so

Thanks!
Quentin