1
0
mirror of https://git.yoctoproject.org/poky synced 2026-07-17 04:07:06 +00:00

ref-manual: fix for features_check class change

distro_features_check was renamed to features_check and extended to
support MACHINE_FEATURES, COMBINED_FEATURES and ANY_OF_*_FEATURES in
dunfell, but the documentation still needed to be updated.

(From yocto-docs rev: 274eb596582a22883e8b386a07cf32ed45a77d79)

Signed-off-by: Paul Eggleton <paul.eggleton@microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Paul Eggleton
2020-10-27 18:18:30 -07:00
committed by Richard Purdie
parent 266e1d6ae8
commit 249e789fed
2 changed files with 46 additions and 21 deletions
+26 -15
View File
@@ -501,21 +501,6 @@ Support for other version control systems such as Subversion is limited
due to BitBake's automatic fetch dependencies (e.g.
``subversion-native``).
.. _ref-classes-distro_features_check:
``distro_features_check.bbclass``
=================================
The ``distro_features_check`` class allows individual recipes to check
for required and conflicting
:term:`DISTRO_FEATURES`.
This class provides support for the
:term:`REQUIRED_DISTRO_FEATURES` and
:term:`CONFLICT_DISTRO_FEATURES`
variables. If any conditions specified in the recipe using the above
variables are not met, the recipe will be skipped.
.. _ref-classes-distutils:
``distutils*.bbclass``
@@ -656,6 +641,32 @@ Finally, here is an example that sets the root password to "1876*18":
usermod -P 1876*18 root; \
"
.. _ref-classes-features_check:
``features_check.bbclass``
=================================
The ``features_check`` class allows individual recipes to check
for required and conflicting
:term:`DISTRO_FEATURES`, :term:`MACHINE_FEATURES` or :term:`COMBINED_FEATURES`.
This class provides support for the following variables:
- :term:`REQUIRED_DISTRO_FEATURES`
- :term:`CONFLICT_DISTRO_FEATURES`
- :term:`ANY_OF_DISTRO_FEATURES`
- ``REQUIRED_MACHINE_FEATURES``
- ``CONFLICT_MACHINE_FEATURES``
- ``ANY_OF_MACHINE_FEATURES``
- ``REQUIRED_COMBINED_FEATURES``
- ``CONFLICT_COMBINED_FEATURES``
- ``ANY_OF_COMBINED_FEATURES``
If any conditions specified in the recipe using the above
variables are not met, the recipe will be skipped, and if the
build system attempts to build the recipe then an error will be
triggered.
.. _ref-classes-fontcache:
``fontcache.bbclass``