diff mbox series

[09/20] ref-manual/variables.rst: document the CARGO_PROFILE variable

Message ID 20260918-releases-notes-6-1-v1-9-2d0fceffa242@bootlin.com
State New
Headers show
Series Updates and release notes for 6.1 | expand

Commit Message

Antonin Godard Sept. 18, 2026, 1:53 p.m. UTC
Added by commit d4de7d0256ac ("classes/cargo: remove BUILD_MODE, replace
with CARGO_PROFILE") in OE-Core.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 documentation/ref-manual/variables.rst | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
index 5f94a0505..2b2aa4df8 100644
--- a/documentation/ref-manual/variables.rst
+++ b/documentation/ref-manual/variables.rst
@@ -1520,6 +1520,12 @@  system and gives an overview of their function and contents.
       libraries are not installed, to replicate the behavior of the ``cargo
       install`` command.
 
+   :term:`CARGO_PROFILE`
+      When inheriting the :ref:`ref-classes-cargo` class, the
+      :term:`CARGO_PROFILE` variable allows selecting the profile to use when
+      building (``--profile`` option). By default this variable is automatically
+      set based on the value of :term:`DEBUG_BUILD`.
+
    :term:`CC`
       The minimal command and arguments used to run the C compiler.