diff options
author | Paul Eggleton <paul.eggleton@microsoft.com> | 2022-10-06 13:36:38 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-10-19 17:32:56 +0100 |
commit | 8ba77dd4034dc74e1891578e977efb817045dc8a (patch) | |
tree | fb22c9f820b9d1481e2ca088fa6270fa7f44b8e6 /documentation | |
parent | 500d5bc5c9ef820b5465400571eb2a478074d58a (diff) | |
download | poky-8ba77dd4034dc74e1891578e977efb817045dc8a.tar.gz |
ref-manual: expand documentation on image-buildinfo class
Expand the documentation on the image-buildinfo class, and add variable
glossary entries for IMAGE_BUILDINFO_FILE, IMAGE_BUILDINFO_VARS and
SDK_BUILDINFO_FILE (latter is new in 4.1).
(From yocto-docs rev: f69b2f614aaa56a19432538cb1adf33a441ea31d)
Signed-off-by: Paul Eggleton <paul.eggleton@microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/ref-manual/classes.rst | 18 | ||||
-rw-r--r-- | documentation/ref-manual/variables.rst | 16 |
2 files changed, 32 insertions, 2 deletions
diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst index 5e49613b2f..cc0d212130 100644 --- a/documentation/ref-manual/classes.rst +++ b/documentation/ref-manual/classes.rst | |||
@@ -881,8 +881,22 @@ Yocto Project Overview and Concepts Manual. | |||
881 | ``image-buildinfo.bbclass`` | 881 | ``image-buildinfo.bbclass`` |
882 | =========================== | 882 | =========================== |
883 | 883 | ||
884 | The ``image-buildinfo`` class writes information to the target | 884 | The ``image-buildinfo`` class writes a plain text file containing |
885 | filesystem on ``/etc/build``. | 885 | build information to the target filesystem at ``${sysconfdir}/buildinfo`` |
886 | by default (as specified by :term:`IMAGE_BUILDINFO_FILE`. | ||
887 | This can be useful for manually determining the origin of any given | ||
888 | image. It writes out two sections: | ||
889 | |||
890 | 1. `Build Configuration`: a list of variables and their values (specified | ||
891 | by :term:`IMAGE_BUILDINFO_VARS`, which defaults to :term:`DISTRO` and | ||
892 | :term:`DISTRO_VERSION`) | ||
893 | |||
894 | 2. `Layer Revisions`: the revisions of all of the layers used in the | ||
895 | build. | ||
896 | |||
897 | Additionally, when building an SDK it will write the same contents | ||
898 | to ``/buildinfo`` by default (as specified by | ||
899 | :term:`SDK_BUILDINFO_FILE`). | ||
886 | 900 | ||
887 | .. _ref-classes-image_types: | 901 | .. _ref-classes-image_types: |
888 | 902 | ||
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst index 53079c4625..ad9857082d 100644 --- a/documentation/ref-manual/variables.rst +++ b/documentation/ref-manual/variables.rst | |||
@@ -3053,6 +3053,17 @@ system and gives an overview of their function and contents. | |||
3053 | material for Wic is located in the | 3053 | material for Wic is located in the |
3054 | ":doc:`/ref-manual/kickstart`" chapter. | 3054 | ":doc:`/ref-manual/kickstart`" chapter. |
3055 | 3055 | ||
3056 | :term:`IMAGE_BUILDINFO_FILE` | ||
3057 | When using the :ref:`image-buildinfo <ref-classes-image-buildinfo>` class, | ||
3058 | specifies the file in the image to write the build information into. The | ||
3059 | default value is "``${sysconfdir}/buildinfo``". | ||
3060 | |||
3061 | :term:`IMAGE_BUILDINFO_VARS` | ||
3062 | When using the :ref:`image-buildinfo <ref-classes-image-buildinfo>` class, | ||
3063 | specifies the list of variables to include in the `Build Configuration` | ||
3064 | section of the output file (as a space-separated list). Defaults to | ||
3065 | ":term:`DISTRO` :term:`DISTRO_VERSION`". | ||
3066 | |||
3056 | :term:`IMAGE_CLASSES` | 3067 | :term:`IMAGE_CLASSES` |
3057 | A list of classes that all images should inherit. You typically use | 3068 | A list of classes that all images should inherit. You typically use |
3058 | this variable to specify the list of classes that register the | 3069 | this variable to specify the list of classes that register the |
@@ -6627,6 +6638,11 @@ system and gives an overview of their function and contents. | |||
6627 | The target architecture for the SDK. Typically, you do not directly | 6638 | The target architecture for the SDK. Typically, you do not directly |
6628 | set this variable. Instead, use :term:`SDKMACHINE`. | 6639 | set this variable. Instead, use :term:`SDKMACHINE`. |
6629 | 6640 | ||
6641 | :term:`SDK_BUILDINFO_FILE` | ||
6642 | When using the :ref:`image-buildinfo <ref-classes-image-buildinfo>` class, | ||
6643 | specifies the file in the SDK to write the build information into. The | ||
6644 | default value is "``/buildinfo``". | ||
6645 | |||
6630 | :term:`SDK_CUSTOM_TEMPLATECONF` | 6646 | :term:`SDK_CUSTOM_TEMPLATECONF` |
6631 | When building the extensible SDK, if :term:`SDK_CUSTOM_TEMPLATECONF` is set to | 6647 | When building the extensible SDK, if :term:`SDK_CUSTOM_TEMPLATECONF` is set to |
6632 | "1" and a ``conf/templateconf.cfg`` file exists in the build directory | 6648 | "1" and a ``conf/templateconf.cfg`` file exists in the build directory |