diff options
author | Antonin Godard <antonin.godard@bootlin.com> | 2024-10-09 09:41:01 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-10-11 17:05:04 +0100 |
commit | 37ebf54d1c8ba2b74ce2dc0e183d582873a300d1 (patch) | |
tree | c8c1d2d897094ebc9d593aefebe5da553d8576bd /documentation/ref-manual/classes.rst | |
parent | 7b717c7e2af713c7b4f47fcd5b395eda959d8c06 (diff) | |
download | poky-37ebf54d1c8ba2b74ce2dc0e183d582873a300d1.tar.gz |
ref-manual: add new retain class and variables
Document the new `retain` class with its configuration variables in the
variable index.
(From yocto-docs rev: b62f1be5dada0fb760ff7e0806b16225f7261560)
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/ref-manual/classes.rst')
-rw-r--r-- | documentation/ref-manual/classes.rst | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst index 46d77d0e55..9f6e427253 100644 --- a/documentation/ref-manual/classes.rst +++ b/documentation/ref-manual/classes.rst | |||
@@ -2728,6 +2728,23 @@ commit, and log. From the information, report files using a JSON format | |||
2728 | are created and stored in | 2728 | are created and stored in |
2729 | ``${``\ :term:`LOG_DIR`\ ``}/error-report``. | 2729 | ``${``\ :term:`LOG_DIR`\ ``}/error-report``. |
2730 | 2730 | ||
2731 | .. _ref-classes-retain: | ||
2732 | |||
2733 | ``retain`` | ||
2734 | ========== | ||
2735 | |||
2736 | The :ref:`ref-classes-retain` class can be used to create a tarball of the work | ||
2737 | directory for a recipe when one of its tasks fails, or any other nominated | ||
2738 | directories. It is useful in cases where the environment in which builds are run | ||
2739 | is ephemeral or otherwise inaccessible for examination during debugging. | ||
2740 | |||
2741 | To enable, add the following to your configuration:: | ||
2742 | |||
2743 | INHERIT += "retain" | ||
2744 | |||
2745 | The class can be disabled for specific recipes using the :term:`RETAIN_ENABLED` | ||
2746 | variable. | ||
2747 | |||
2731 | .. _ref-classes-rm-work: | 2748 | .. _ref-classes-rm-work: |
2732 | 2749 | ||
2733 | ``rm_work`` | 2750 | ``rm_work`` |