diff options
author | Paul Eggleton <paul.eggleton@microsoft.com> | 2022-10-09 16:44:31 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-10-19 17:32:57 +0100 |
commit | b1d17778658275a7757419f53bd47ed3906d50b2 (patch) | |
tree | e8098b8c308feb668dc83138ada8c40e6b1de046 | |
parent | c29eb10e31809a523109d638b80175d68dfc9930 (diff) | |
download | poky-b1d17778658275a7757419f53bd47ed3906d50b2.tar.gz |
Update documentation for classes split
* Make reference to meta/classes* instead of just meta/classes
* Update each reference to the path where the class has moved
* Add a brief explanation to the classes reference explaining the split
* Add a note to INHERIT, INHERIT_DISTRO, IMAGE_CLASSES and USER_CLASSES
variable glossary entries mentioning where the specified classes must
be located. I contemplated adding the same note to PACKAGE_CLASSES
but decided against it, as it has a very specific usage and such a
note might distract from the narrative of that entry.
* Also trim the IMAGE_CLASSES entry which was quite outdated.
* INHERIT += no longer works with testimage so drop the note about that
(From yocto-docs rev: e76bed00b452d3049f6c22afbfb980b557a141bd)
Signed-off-by: Paul Eggleton <paul.eggleton@microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | documentation/dev-manual/common-tasks.rst | 4 | ||||
-rw-r--r-- | documentation/overview-manual/concepts.rst | 4 | ||||
-rw-r--r-- | documentation/ref-manual/classes.rst | 20 | ||||
-rw-r--r-- | documentation/ref-manual/faq.rst | 2 | ||||
-rw-r--r-- | documentation/ref-manual/structure.rst | 6 | ||||
-rw-r--r-- | documentation/ref-manual/tasks.rst | 4 | ||||
-rw-r--r-- | documentation/ref-manual/variables.rst | 59 |
7 files changed, 53 insertions, 46 deletions
diff --git a/documentation/dev-manual/common-tasks.rst b/documentation/dev-manual/common-tasks.rst index 68ce2b852a..0d4e814f66 100644 --- a/documentation/dev-manual/common-tasks.rst +++ b/documentation/dev-manual/common-tasks.rst | |||
@@ -973,7 +973,7 @@ a recipe and using :term:`EXTRA_IMAGE_FEATURES` from within your | |||
973 | :term:`Build Directory`. | 973 | :term:`Build Directory`. |
974 | 974 | ||
975 | To understand how these features work, the best reference is | 975 | To understand how these features work, the best reference is |
976 | :ref:`meta/classes/image.bbclass <ref-classes-image>`. | 976 | :ref:`meta/classes-recipe/image.bbclass <ref-classes-image>`. |
977 | This class lists out the available | 977 | This class lists out the available |
978 | :term:`IMAGE_FEATURES` of which most map to package groups while some, such | 978 | :term:`IMAGE_FEATURES` of which most map to package groups while some, such |
979 | as ``debug-tweaks`` and ``read-only-rootfs``, resolve as general | 979 | as ``debug-tweaks`` and ``read-only-rootfs``, resolve as general |
@@ -6889,7 +6889,7 @@ multiple times if you have more than one set of modules to package. | |||
6889 | For more examples that show how to use ``do_split_packages``, see the | 6889 | For more examples that show how to use ``do_split_packages``, see the |
6890 | ``connman.inc`` file in the ``meta/recipes-connectivity/connman/`` | 6890 | ``connman.inc`` file in the ``meta/recipes-connectivity/connman/`` |
6891 | directory of the ``poky`` :ref:`source repository <overview-manual/development-environment:yocto project source repositories>`. You can | 6891 | directory of the ``poky`` :ref:`source repository <overview-manual/development-environment:yocto project source repositories>`. You can |
6892 | also find examples in ``meta/classes/kernel.bbclass``. | 6892 | also find examples in ``meta/classes-recipe/kernel.bbclass``. |
6893 | 6893 | ||
6894 | Following is a reference that shows ``do_split_packages`` mandatory and | 6894 | Following is a reference that shows ``do_split_packages`` mandatory and |
6895 | optional arguments:: | 6895 | optional arguments:: |
diff --git a/documentation/overview-manual/concepts.rst b/documentation/overview-manual/concepts.rst index 35d6feb17a..a978e2cd7d 100644 --- a/documentation/overview-manual/concepts.rst +++ b/documentation/overview-manual/concepts.rst | |||
@@ -853,7 +853,7 @@ This step in the build process consists of the following tasks: | |||
853 | variables. For information on how this variable works within that | 853 | variables. For information on how this variable works within that |
854 | class, see the | 854 | class, see the |
855 | :ref:`autotools <ref-classes-autotools>` class | 855 | :ref:`autotools <ref-classes-autotools>` class |
856 | :yocto_git:`here </poky/tree/meta/classes/autotools.bbclass>`. | 856 | :yocto_git:`here </poky/tree/meta/classes-recipe/autotools.bbclass>`. |
857 | 857 | ||
858 | - *do_compile*: Once a configuration task has been satisfied, | 858 | - *do_compile*: Once a configuration task has been satisfied, |
859 | BitBake compiles the source using the | 859 | BitBake compiles the source using the |
@@ -931,7 +931,7 @@ The :term:`FILES` variable defines the | |||
931 | files that go into each package in | 931 | files that go into each package in |
932 | :term:`PACKAGES`. If you want | 932 | :term:`PACKAGES`. If you want |
933 | details on how this is accomplished, you can look at | 933 | details on how this is accomplished, you can look at |
934 | :yocto_git:`package.bbclass </poky/tree/meta/classes/package.bbclass>`. | 934 | :yocto_git:`package.bbclass </poky/tree/meta/classes-global/package.bbclass>`. |
935 | 935 | ||
936 | Depending on the type of packages being created (RPM, DEB, or IPK), the | 936 | Depending on the type of packages being created (RPM, DEB, or IPK), the |
937 | :ref:`do_package_write_* <ref-tasks-package_write_deb>` | 937 | :ref:`do_package_write_* <ref-tasks-package_write_deb>` |
diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst index f24c579f16..50dbb5a3a6 100644 --- a/documentation/ref-manual/classes.rst +++ b/documentation/ref-manual/classes.rst | |||
@@ -13,8 +13,14 @@ some default behavior. | |||
13 | 13 | ||
14 | Any :term:`Metadata` usually found in a recipe can also be | 14 | Any :term:`Metadata` usually found in a recipe can also be |
15 | placed in a class file. Class files are identified by the extension | 15 | placed in a class file. Class files are identified by the extension |
16 | ``.bbclass`` and are usually placed in a ``classes/`` directory beneath | 16 | ``.bbclass`` and are usually placed in one of a set of subdirectories |
17 | the ``meta*/`` directory found in the :term:`Source Directory`. | 17 | beneath the ``meta*/`` directory found in the :term:`Source Directory`: |
18 | |||
19 | - ``classes-recipe/`` - classes intended to be inherited by recipes | ||
20 | individually | ||
21 | - ``classes-global/`` - classes intended to be inherited globally | ||
22 | - ``classes/`` - classes whose usage context is not clearly defined | ||
23 | |||
18 | Class files can also be pointed to by | 24 | Class files can also be pointed to by |
19 | :term:`BUILDDIR` (e.g. ``build/``) in the same way as | 25 | :term:`BUILDDIR` (e.g. ``build/``) in the same way as |
20 | ``.conf`` files in the ``conf`` directory. Class files are searched for | 26 | ``.conf`` files in the ``conf`` directory. Class files are searched for |
@@ -22,7 +28,7 @@ in :term:`BBPATH` using the same method by which ``.conf`` | |||
22 | files are searched. | 28 | files are searched. |
23 | 29 | ||
24 | This chapter discusses only the most useful and important classes. Other | 30 | This chapter discusses only the most useful and important classes. Other |
25 | classes do exist within the ``meta/classes`` directory in the Source | 31 | classes do exist within the ``meta/classes*`` directories in the Source |
26 | Directory. You can reference the ``.bbclass`` files directly for more | 32 | Directory. You can reference the ``.bbclass`` files directly for more |
27 | information. | 33 | information. |
28 | 34 | ||
@@ -2778,11 +2784,9 @@ images using QEMU and on actual hardware. The classes handle loading the | |||
2778 | tests and starting the image. To use the classes, you need to perform | 2784 | tests and starting the image. To use the classes, you need to perform |
2779 | steps to set up the environment. | 2785 | steps to set up the environment. |
2780 | 2786 | ||
2781 | .. note:: | 2787 | To enable this class, add the following to your configuration:: |
2782 | 2788 | ||
2783 | Best practices include using :term:`IMAGE_CLASSES` rather than | 2789 | IMAGE_CLASSES += "testimage" |
2784 | :term:`INHERIT` to inherit the ``testimage`` class for automated image | ||
2785 | testing. | ||
2786 | 2790 | ||
2787 | The tests are commands that run on the target system over ``ssh``. Each | 2791 | The tests are commands that run on the target system over ``ssh``. Each |
2788 | test is written in Python and makes use of the ``unittest`` module. | 2792 | test is written in Python and makes use of the ``unittest`` module. |
@@ -2937,7 +2941,7 @@ To use this class, you need to define a number of variables: | |||
2937 | These variables list alternative commands needed by a package, provide | 2941 | These variables list alternative commands needed by a package, provide |
2938 | pathnames for links, default links for targets, and so forth. For | 2942 | pathnames for links, default links for targets, and so forth. For |
2939 | details on how to use this class, see the comments in the | 2943 | details on how to use this class, see the comments in the |
2940 | :yocto_git:`update-alternatives.bbclass </poky/tree/meta/classes/update-alternatives.bbclass>` | 2944 | :yocto_git:`update-alternatives.bbclass </poky/tree/meta/classes-recipe/update-alternatives.bbclass>` |
2941 | file. | 2945 | file. |
2942 | 2946 | ||
2943 | .. note:: | 2947 | .. note:: |
diff --git a/documentation/ref-manual/faq.rst b/documentation/ref-manual/faq.rst index af49d57715..84affddd1e 100644 --- a/documentation/ref-manual/faq.rst +++ b/documentation/ref-manual/faq.rst | |||
@@ -109,7 +109,7 @@ I prevent this? | |||
109 | but make sure the package is manually marked as machine-specific for the | 109 | but make sure the package is manually marked as machine-specific for the |
110 | case that needs it. The code that handles | 110 | case that needs it. The code that handles |
111 | :term:`SRC_URI_OVERRIDES_PACKAGE_ARCH` is in the | 111 | :term:`SRC_URI_OVERRIDES_PACKAGE_ARCH` is in the |
112 | ``meta/classes/base.bbclass`` file. | 112 | ``meta/classes-global/base.bbclass`` file. |
113 | 113 | ||
114 | **Q:** I'm behind a firewall and need to use a proxy server. How do I do | 114 | **Q:** I'm behind a firewall and need to use a proxy server. How do I do |
115 | that? | 115 | that? |
diff --git a/documentation/ref-manual/structure.rst b/documentation/ref-manual/structure.rst index 533745b370..fe27d17caa 100644 --- a/documentation/ref-manual/structure.rst +++ b/documentation/ref-manual/structure.rst | |||
@@ -669,10 +669,10 @@ Yocto Project. Metadata has several important subdivisions: | |||
669 | 669 | ||
670 | .. _structure-meta-classes: | 670 | .. _structure-meta-classes: |
671 | 671 | ||
672 | ``meta/classes/`` | 672 | ``meta/classes*/`` |
673 | ----------------- | 673 | ------------------ |
674 | 674 | ||
675 | This directory contains the ``*.bbclass`` files. Class files are used to | 675 | These directories contain the ``*.bbclass`` files. Class files are used to |
676 | abstract common code so it can be reused by multiple packages. Every | 676 | abstract common code so it can be reused by multiple packages. Every |
677 | package inherits the :ref:`ref-classes-base` file. Examples of other important | 677 | package inherits the :ref:`ref-classes-base` file. Examples of other important |
678 | classes are :ref:`ref-classes-autotools`, which in theory allows any | 678 | classes are :ref:`ref-classes-autotools`, which in theory allows any |
diff --git a/documentation/ref-manual/tasks.rst b/documentation/ref-manual/tasks.rst index d4408d1422..b17c09cdc4 100644 --- a/documentation/ref-manual/tasks.rst +++ b/documentation/ref-manual/tasks.rst | |||
@@ -190,8 +190,8 @@ that either directly or indirectly depend on the installed files (e.g. | |||
190 | - The ``cp`` command with the ``--no-preserve=ownership`` option. | 190 | - The ``cp`` command with the ``--no-preserve=ownership`` option. |
191 | 191 | ||
192 | - The ``tar`` command with the ``--no-same-owner`` option. See the | 192 | - The ``tar`` command with the ``--no-same-owner`` option. See the |
193 | ``bin_package.bbclass`` file in the ``meta/classes`` directory of | 193 | ``bin_package.bbclass`` file in the ``meta/classes-recipe`` |
194 | the :term:`Source Directory` for an example. | 194 | subdirectory of the :term:`Source Directory` for an example. |
195 | 195 | ||
196 | .. _ref-tasks-install_ptest_base: | 196 | .. _ref-tasks-install_ptest_base: |
197 | 197 | ||
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst index 5c75dac0fe..f8da00c7ce 100644 --- a/documentation/ref-manual/variables.rst +++ b/documentation/ref-manual/variables.rst | |||
@@ -773,7 +773,7 @@ system and gives an overview of their function and contents. | |||
773 | and `glob <https://docs.python.org/3/library/glob.html>`__. | 773 | and `glob <https://docs.python.org/3/library/glob.html>`__. |
774 | 774 | ||
775 | For more information on how this variable works, see | 775 | For more information on how this variable works, see |
776 | ``meta/classes/binconfig.bbclass`` in the :term:`Source Directory`. | 776 | ``meta/classes-recipe/binconfig.bbclass`` in the :term:`Source Directory`. |
777 | You can also find general | 777 | You can also find general |
778 | information on the class in the | 778 | information on the class in the |
779 | ":ref:`ref-classes-binconfig`" section. | 779 | ":ref:`ref-classes-binconfig`" section. |
@@ -2062,7 +2062,7 @@ system and gives an overview of their function and contents. | |||
2062 | available are xz and bz2. | 2062 | available are xz and bz2. |
2063 | 2063 | ||
2064 | For information on policies and on how to use this variable, see the | 2064 | For information on policies and on how to use this variable, see the |
2065 | comments in the ``meta/classes/compress_doc.bbclass`` file. | 2065 | comments in the ``meta/classes-recipe/compress_doc.bbclass`` file. |
2066 | 2066 | ||
2067 | :term:`EFI_PROVIDER` | 2067 | :term:`EFI_PROVIDER` |
2068 | When building bootable images (i.e. where ``hddimg``, ``iso``, or | 2068 | When building bootable images (i.e. where ``hddimg``, ``iso``, or |
@@ -2230,7 +2230,7 @@ system and gives an overview of their function and contents. | |||
2230 | variable tells the OpenEmbedded build system to prefer the installed | 2230 | variable tells the OpenEmbedded build system to prefer the installed |
2231 | external tools. See the | 2231 | external tools. See the |
2232 | :ref:`kernel-yocto <ref-classes-kernel-yocto>` class in | 2232 | :ref:`kernel-yocto <ref-classes-kernel-yocto>` class in |
2233 | ``meta/classes`` to see how the variable is used. | 2233 | ``meta/classes-recipe`` to see how the variable is used. |
2234 | 2234 | ||
2235 | :term:`EXTERNALSRC` | 2235 | :term:`EXTERNALSRC` |
2236 | When inheriting the :ref:`externalsrc <ref-classes-externalsrc>` | 2236 | When inheriting the :ref:`externalsrc <ref-classes-externalsrc>` |
@@ -2607,7 +2607,7 @@ system and gives an overview of their function and contents. | |||
2607 | :term:`SRC_URI` statements. | 2607 | :term:`SRC_URI` statements. |
2608 | 2608 | ||
2609 | The default value for the :term:`FILESPATH` variable is defined in the | 2609 | The default value for the :term:`FILESPATH` variable is defined in the |
2610 | :ref:`ref-classes-base` class found in ``meta/classes`` in the | 2610 | :ref:`ref-classes-base` class found in ``meta/classes-global`` in the |
2611 | :term:`Source Directory`:: | 2611 | :term:`Source Directory`:: |
2612 | 2612 | ||
2613 | FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${BP}", \ | 2613 | FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${BP}", \ |
@@ -3097,16 +3097,11 @@ system and gives an overview of their function and contents. | |||
3097 | ":term:`DISTRO` :term:`DISTRO_VERSION`". | 3097 | ":term:`DISTRO` :term:`DISTRO_VERSION`". |
3098 | 3098 | ||
3099 | :term:`IMAGE_CLASSES` | 3099 | :term:`IMAGE_CLASSES` |
3100 | A list of classes that all images should inherit. You typically use | 3100 | A list of classes that all images should inherit. This is typically used |
3101 | this variable to specify the list of classes that register the | 3101 | to enable functionality across all image recipes. |
3102 | different types of images the OpenEmbedded build system creates. | ||
3103 | 3102 | ||
3104 | The default value for :term:`IMAGE_CLASSES` is ``image_types``. You can | 3103 | Classes specified in :term:`IMAGE_CLASSES` must be located in the |
3105 | set this variable in your ``local.conf`` or in a distribution | 3104 | ``classes-recipe/`` or ``classes/`` subdirectories. |
3106 | configuration file. | ||
3107 | |||
3108 | For more information, see ``meta/classes/image_types.bbclass`` in the | ||
3109 | :term:`Source Directory`. | ||
3110 | 3105 | ||
3111 | :term:`IMAGE_CMD` | 3106 | :term:`IMAGE_CMD` |
3112 | Specifies the command to create the image file for a specific image | 3107 | Specifies the command to create the image file for a specific image |
@@ -3122,7 +3117,7 @@ system and gives an overview of their function and contents. | |||
3122 | You typically do not need to set this variable unless you are adding | 3117 | You typically do not need to set this variable unless you are adding |
3123 | support for a new image type. For more examples on how to set this | 3118 | support for a new image type. For more examples on how to set this |
3124 | variable, see the :ref:`image_types <ref-classes-image_types>` | 3119 | variable, see the :ref:`image_types <ref-classes-image_types>` |
3125 | class file, which is ``meta/classes/image_types.bbclass``. | 3120 | class file, which is ``meta/classes-recipe/image_types.bbclass``. |
3126 | 3121 | ||
3127 | :term:`IMAGE_DEVICE_TABLES` | 3122 | :term:`IMAGE_DEVICE_TABLES` |
3128 | Specifies one or more files that contain custom device tables that | 3123 | Specifies one or more files that contain custom device tables that |
@@ -3518,7 +3513,7 @@ system and gives an overview of their function and contents. | |||
3518 | - wic.lzma | 3513 | - wic.lzma |
3519 | 3514 | ||
3520 | For more information about these types of images, see | 3515 | For more information about these types of images, see |
3521 | ``meta/classes/image_types*.bbclass`` in the :term:`Source Directory`. | 3516 | ``meta/classes-recipe/image_types*.bbclass`` in the :term:`Source Directory`. |
3522 | 3517 | ||
3523 | :term:`IMAGE_VERSION_SUFFIX` | 3518 | :term:`IMAGE_VERSION_SUFFIX` |
3524 | Version suffix that is part of the default :term:`IMAGE_NAME` and | 3519 | Version suffix that is part of the default :term:`IMAGE_NAME` and |
@@ -3617,6 +3612,8 @@ system and gives an overview of their function and contents. | |||
3617 | functions in the class or classes are not executed for the base | 3612 | functions in the class or classes are not executed for the base |
3618 | configuration and in each individual recipe. The OpenEmbedded build | 3613 | configuration and in each individual recipe. The OpenEmbedded build |
3619 | system ignores changes to :term:`INHERIT` in individual recipes. | 3614 | system ignores changes to :term:`INHERIT` in individual recipes. |
3615 | Classes inherited using :term:`INHERIT` must be located in the | ||
3616 | ``classes-global/`` or ``classes/`` subdirectories. | ||
3620 | 3617 | ||
3621 | For more information on :term:`INHERIT`, see the | 3618 | For more information on :term:`INHERIT`, see the |
3622 | :ref:`bitbake:bitbake-user-manual/bitbake-user-manual-metadata:\`\`inherit\`\` configuration directive`" | 3619 | :ref:`bitbake:bitbake-user-manual/bitbake-user-manual-metadata:\`\`inherit\`\` configuration directive`" |
@@ -3626,6 +3623,9 @@ system and gives an overview of their function and contents. | |||
3626 | Lists classes that will be inherited at the distribution level. It is | 3623 | Lists classes that will be inherited at the distribution level. It is |
3627 | unlikely that you want to edit this variable. | 3624 | unlikely that you want to edit this variable. |
3628 | 3625 | ||
3626 | Classes specified in :term:`INHERIT_DISTRO` must be located in the | ||
3627 | ``classes-global/`` or ``classes/`` subdirectories. | ||
3628 | |||
3629 | The default value of the variable is set as follows in the | 3629 | The default value of the variable is set as follows in the |
3630 | ``meta/conf/distro/defaultsetup.conf`` file:: | 3630 | ``meta/conf/distro/defaultsetup.conf`` file:: |
3631 | 3631 | ||
@@ -3841,7 +3841,7 @@ system and gives an overview of their function and contents. | |||
3841 | 3841 | ||
3842 | :term:`INITRAMFS_LINK_NAME` | 3842 | :term:`INITRAMFS_LINK_NAME` |
3843 | The link name of the initial RAM filesystem image. This variable is | 3843 | The link name of the initial RAM filesystem image. This variable is |
3844 | set in the ``meta/classes/kernel-artifact-names.bbclass`` file as | 3844 | set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as |
3845 | follows:: | 3845 | follows:: |
3846 | 3846 | ||
3847 | INITRAMFS_LINK_NAME ?= "initramfs-${KERNEL_ARTIFACT_LINK_NAME}" | 3847 | INITRAMFS_LINK_NAME ?= "initramfs-${KERNEL_ARTIFACT_LINK_NAME}" |
@@ -3867,7 +3867,7 @@ system and gives an overview of their function and contents. | |||
3867 | 3867 | ||
3868 | :term:`INITRAMFS_NAME` | 3868 | :term:`INITRAMFS_NAME` |
3869 | The base name of the initial RAM filesystem image. This variable is | 3869 | The base name of the initial RAM filesystem image. This variable is |
3870 | set in the ``meta/classes/kernel-artifact-names.bbclass`` file as | 3870 | set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as |
3871 | follows:: | 3871 | follows:: |
3872 | 3872 | ||
3873 | INITRAMFS_NAME ?= "initramfs-${KERNEL_ARTIFACT_NAME}" | 3873 | INITRAMFS_NAME ?= "initramfs-${KERNEL_ARTIFACT_NAME}" |
@@ -4077,7 +4077,7 @@ system and gives an overview of their function and contents. | |||
4077 | variable. | 4077 | variable. |
4078 | 4078 | ||
4079 | The value of :term:`KERNEL_ARTIFACT_NAME`, which is set in the | 4079 | The value of :term:`KERNEL_ARTIFACT_NAME`, which is set in the |
4080 | ``meta/classes/kernel-artifact-names.bbclass`` file, has the | 4080 | ``meta/classes-recipe/kernel-artifact-names.bbclass`` file, has the |
4081 | following default value:: | 4081 | following default value:: |
4082 | 4082 | ||
4083 | KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}" | 4083 | KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}" |
@@ -4090,7 +4090,7 @@ system and gives an overview of their function and contents. | |||
4090 | :ref:`kernel <ref-classes-kernel>` class should inherit. You | 4090 | :ref:`kernel <ref-classes-kernel>` class should inherit. You |
4091 | typically append this variable to enable extended image types. An | 4091 | typically append this variable to enable extended image types. An |
4092 | example is the "kernel-fitimage", which enables fitImage support and | 4092 | example is the "kernel-fitimage", which enables fitImage support and |
4093 | resides in ``meta/classes/kernel-fitimage.bbclass``. You can register | 4093 | resides in ``meta/classes-recipe/kernel-fitimage.bbclass``. You can register |
4094 | custom kernel image types with the :ref:`kernel <ref-classes-kernel>` class using this | 4094 | custom kernel image types with the :ref:`kernel <ref-classes-kernel>` class using this |
4095 | variable. | 4095 | variable. |
4096 | 4096 | ||
@@ -4120,7 +4120,7 @@ system and gives an overview of their function and contents. | |||
4120 | 4120 | ||
4121 | :term:`KERNEL_DTB_LINK_NAME` | 4121 | :term:`KERNEL_DTB_LINK_NAME` |
4122 | The link name of the kernel device tree binary (DTB). This variable | 4122 | The link name of the kernel device tree binary (DTB). This variable |
4123 | is set in the ``meta/classes/kernel-artifact-names.bbclass`` file as | 4123 | is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as |
4124 | follows:: | 4124 | follows:: |
4125 | 4125 | ||
4126 | KERNEL_DTB_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}" | 4126 | KERNEL_DTB_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}" |
@@ -4136,7 +4136,7 @@ system and gives an overview of their function and contents. | |||
4136 | 4136 | ||
4137 | :term:`KERNEL_DTB_NAME` | 4137 | :term:`KERNEL_DTB_NAME` |
4138 | The base name of the kernel device tree binary (DTB). This variable | 4138 | The base name of the kernel device tree binary (DTB). This variable |
4139 | is set in the ``meta/classes/kernel-artifact-names.bbclass`` file as | 4139 | is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as |
4140 | follows:: | 4140 | follows:: |
4141 | 4141 | ||
4142 | KERNEL_DTB_NAME ?= "${KERNEL_ARTIFACT_NAME}" | 4142 | KERNEL_DTB_NAME ?= "${KERNEL_ARTIFACT_NAME}" |
@@ -4187,7 +4187,7 @@ system and gives an overview of their function and contents. | |||
4187 | 4187 | ||
4188 | :term:`KERNEL_FIT_LINK_NAME` | 4188 | :term:`KERNEL_FIT_LINK_NAME` |
4189 | The link name of the kernel flattened image tree (FIT) image. This | 4189 | The link name of the kernel flattened image tree (FIT) image. This |
4190 | variable is set in the ``meta/classes/kernel-artifact-names.bbclass`` | 4190 | variable is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` |
4191 | file as follows:: | 4191 | file as follows:: |
4192 | 4192 | ||
4193 | KERNEL_FIT_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}" | 4193 | KERNEL_FIT_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}" |
@@ -4203,7 +4203,7 @@ system and gives an overview of their function and contents. | |||
4203 | 4203 | ||
4204 | :term:`KERNEL_FIT_NAME` | 4204 | :term:`KERNEL_FIT_NAME` |
4205 | The base name of the kernel flattened image tree (FIT) image. This | 4205 | The base name of the kernel flattened image tree (FIT) image. This |
4206 | variable is set in the ``meta/classes/kernel-artifact-names.bbclass`` | 4206 | variable is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` |
4207 | file as follows:: | 4207 | file as follows:: |
4208 | 4208 | ||
4209 | KERNEL_FIT_NAME ?= "${KERNEL_ARTIFACT_NAME}" | 4209 | KERNEL_FIT_NAME ?= "${KERNEL_ARTIFACT_NAME}" |
@@ -4215,7 +4215,7 @@ system and gives an overview of their function and contents. | |||
4215 | 4215 | ||
4216 | :term:`KERNEL_IMAGE_LINK_NAME` | 4216 | :term:`KERNEL_IMAGE_LINK_NAME` |
4217 | The link name for the kernel image. This variable is set in the | 4217 | The link name for the kernel image. This variable is set in the |
4218 | ``meta/classes/kernel-artifact-names.bbclass`` file as follows:: | 4218 | ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows:: |
4219 | 4219 | ||
4220 | KERNEL_IMAGE_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}" | 4220 | KERNEL_IMAGE_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}" |
4221 | 4221 | ||
@@ -4243,7 +4243,7 @@ system and gives an overview of their function and contents. | |||
4243 | 4243 | ||
4244 | :term:`KERNEL_IMAGE_NAME` | 4244 | :term:`KERNEL_IMAGE_NAME` |
4245 | The base name of the kernel image. This variable is set in the | 4245 | The base name of the kernel image. This variable is set in the |
4246 | ``meta/classes/kernel-artifact-names.bbclass`` file as follows:: | 4246 | ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows:: |
4247 | 4247 | ||
4248 | KERNEL_IMAGE_NAME ?= "${KERNEL_ARTIFACT_NAME}" | 4248 | KERNEL_IMAGE_NAME ?= "${KERNEL_ARTIFACT_NAME}" |
4249 | 4249 | ||
@@ -4978,7 +4978,7 @@ system and gives an overview of their function and contents. | |||
4978 | 4978 | ||
4979 | :term:`MODULE_TARBALL_LINK_NAME` | 4979 | :term:`MODULE_TARBALL_LINK_NAME` |
4980 | The link name of the kernel module tarball. This variable is set in | 4980 | The link name of the kernel module tarball. This variable is set in |
4981 | the ``meta/classes/kernel-artifact-names.bbclass`` file as follows:: | 4981 | the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows:: |
4982 | 4982 | ||
4983 | MODULE_TARBALL_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}" | 4983 | MODULE_TARBALL_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}" |
4984 | 4984 | ||
@@ -4992,7 +4992,7 @@ system and gives an overview of their function and contents. | |||
4992 | 4992 | ||
4993 | :term:`MODULE_TARBALL_NAME` | 4993 | :term:`MODULE_TARBALL_NAME` |
4994 | The base name of the kernel module tarball. This variable is set in | 4994 | The base name of the kernel module tarball. This variable is set in |
4995 | the ``meta/classes/kernel-artifact-names.bbclass`` file as follows:: | 4995 | the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows:: |
4996 | 4996 | ||
4997 | MODULE_TARBALL_NAME ?= "${KERNEL_ARTIFACT_NAME}" | 4997 | MODULE_TARBALL_NAME ?= "${KERNEL_ARTIFACT_NAME}" |
4998 | 4998 | ||
@@ -5127,7 +5127,7 @@ system and gives an overview of their function and contents. | |||
5127 | ``sysroots/`` directory so that all builds that use the script will | 5127 | ``sysroots/`` directory so that all builds that use the script will |
5128 | use the correct directories for the cross compiling layout. | 5128 | use the correct directories for the cross compiling layout. |
5129 | 5129 | ||
5130 | See the ``meta/classes/binconfig.bbclass`` in the | 5130 | See the ``meta/classes-recipe/binconfig.bbclass`` in the |
5131 | :term:`Source Directory` for details on how this class | 5131 | :term:`Source Directory` for details on how this class |
5132 | applies these additional sed command arguments. | 5132 | applies these additional sed command arguments. |
5133 | 5133 | ||
@@ -8783,6 +8783,9 @@ system and gives an overview of their function and contents. | |||
8783 | A list of classes to globally inherit. These classes are used by the | 8783 | A list of classes to globally inherit. These classes are used by the |
8784 | OpenEmbedded build system to enable extra features. | 8784 | OpenEmbedded build system to enable extra features. |
8785 | 8785 | ||
8786 | Classes inherited using :term:`USER_CLASSES` must be located in the | ||
8787 | ``classes-global/`` or ``classes/`` subdirectories. | ||
8788 | |||
8786 | The default list is set in your ``local.conf`` file:: | 8789 | The default list is set in your ``local.conf`` file:: |
8787 | 8790 | ||
8788 | USER_CLASSES ?= "buildstats" | 8791 | USER_CLASSES ?= "buildstats" |