summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorAntonin Godard <antonin.godard@bootlin.com>2025-10-27 13:43:37 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-10-29 23:16:34 +0000
commitc5ce2c1e13ef9552411ae598840858cf5ab8076b (patch)
treedbf62598983233740b4b2786c6116c13ec9586a5 /documentation
parent1dd4a9ed9812acd4bfc12884a104fe0e3ca293f7 (diff)
downloadpoky-c5ce2c1e13ef9552411ae598840858cf5ab8076b.tar.gz
ref-manual/classes,variables: document the CCACHE_DISABLE variable
Can be used in recipes that want to explicitly skip Ccache support when the ccache class is enabled. Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de> (From yocto-docs rev: b1b4adc8d4d9d23ff6fd91bca632bb0f5277e72b) Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r--documentation/ref-manual/classes.rst4
-rw-r--r--documentation/ref-manual/variables.rst5
2 files changed, 9 insertions, 0 deletions
diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst
index 4d0882401e..4e5083a79c 100644
--- a/documentation/ref-manual/classes.rst
+++ b/documentation/ref-manual/classes.rst
@@ -399,6 +399,10 @@ statements are provided in a :term:`configuration file`::
399 ASSUME_PROVIDED += "ccache-native" 399 ASSUME_PROVIDED += "ccache-native"
400 HOSTTOOLS += "ccache" 400 HOSTTOOLS += "ccache"
401 401
402Recipes can also explicitly disable `Ccache` support even when the
403:ref:`ref-classes-ccache` class is enabled, by setting the
404:term:`CCACHE_DISABLE` variable to "1".
405
402Using the :ref:`ref-classes-ccache` class can lead to unexpected side-effects. 406Using the :ref:`ref-classes-ccache` class can lead to unexpected side-effects.
403Using this class is not recommended. 407Using this class is not recommended.
404 408
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
index 1c4689343d..a79d60edcf 100644
--- a/documentation/ref-manual/variables.rst
+++ b/documentation/ref-manual/variables.rst
@@ -1526,6 +1526,11 @@ system and gives an overview of their function and contents.
1526 :term:`CC` 1526 :term:`CC`
1527 The minimal command and arguments used to run the C compiler. 1527 The minimal command and arguments used to run the C compiler.
1528 1528
1529 :term:`CCACHE_DISABLE`
1530 When inheriting the :ref:`ref-classes-ccache` class, the
1531 :term:`CCACHE_DISABLE` variable can be set to "1" in a recipe to disable
1532 `Ccache` support. This is useful when the recipe is known to not support it.
1533
1529 :term:`CCLD` 1534 :term:`CCLD`
1530 The minimal command and arguments used to run the linker when the C 1535 The minimal command and arguments used to run the linker when the C
1531 compiler is being used as the linker. 1536 compiler is being used as the linker.