diff options
author | Alper Ak <alperyasinak1@gmail.com> | 2025-05-21 13:16:29 +0300 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2025-06-02 10:26:30 -0700 |
commit | 07a064344d72a43795b8e6389e8d351735fc6c3a (patch) | |
tree | a57f62467a2c9c4bfb7249376283b353e7fe6a03 | |
parent | 27c67003919a1a8a3902eda0f7e50fd4362df06c (diff) | |
download | poky-07a064344d72a43795b8e6389e8d351735fc6c3a.tar.gz |
ref-manual/variables.rst: document INHIBIT_DEFAULT_RUST_DEPS
Fix [YOCTO #15755]
(From yocto-docs rev: fe915d6947b0835c481359f62c8b57721568644c)
Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
(cherry picked from commit fd143a04bab38f6aeec23ec229657b16fcaecdf1)
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r-- | documentation/ref-manual/variables.rst | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst index 079ee76af8..4953fae4b6 100644 --- a/documentation/ref-manual/variables.rst +++ b/documentation/ref-manual/variables.rst | |||
@@ -4520,6 +4520,23 @@ system and gives an overview of their function and contents. | |||
4520 | Set the variable to "1" to prevent the default dependencies from | 4520 | Set the variable to "1" to prevent the default dependencies from |
4521 | being added. | 4521 | being added. |
4522 | 4522 | ||
4523 | :term:`INHIBIT_DEFAULT_RUST_DEPS` | ||
4524 | Prevents the :ref:`ref-classes-rust` class from automatically adding | ||
4525 | its default build-time dependencies. | ||
4526 | |||
4527 | When a recipe inherits the :ref:`ref-classes-rust` class, several | ||
4528 | tools such as ``rust-native`` and ``${RUSTLIB_DEP}`` (only added when cross-compiling) are added | ||
4529 | to :term:`DEPENDS` to support the ``rust`` build process. | ||
4530 | |||
4531 | To prevent the build system from adding these dependencies automatically, | ||
4532 | set the :term:`INHIBIT_DEFAULT_RUST_DEPS` variable as follows:: | ||
4533 | |||
4534 | INHIBIT_DEFAULT_RUST_DEPS = "1" | ||
4535 | |||
4536 | By default, the value of :term:`INHIBIT_DEFAULT_RUST_DEPS` is empty. Setting | ||
4537 | it to "0" does not disable inhibition. Only the empty string will disable | ||
4538 | inhibition. | ||
4539 | |||
4523 | :term:`INHIBIT_PACKAGE_DEBUG_SPLIT` | 4540 | :term:`INHIBIT_PACKAGE_DEBUG_SPLIT` |
4524 | Prevents the OpenEmbedded build system from splitting out debug | 4541 | Prevents the OpenEmbedded build system from splitting out debug |
4525 | information during packaging. By default, the build system splits out | 4542 | information during packaging. By default, the build system splits out |