summaryrefslogtreecommitdiffstats
path: root/documentation/ref-manual/ref-classes.rst
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/ref-manual/ref-classes.rst')
-rw-r--r--documentation/ref-manual/ref-classes.rst41
1 files changed, 26 insertions, 15 deletions
diff --git a/documentation/ref-manual/ref-classes.rst b/documentation/ref-manual/ref-classes.rst
index 028729ffe9..249b58e60c 100644
--- a/documentation/ref-manual/ref-classes.rst
+++ b/documentation/ref-manual/ref-classes.rst
@@ -501,21 +501,6 @@ Support for other version control systems such as Subversion is limited
501due to BitBake's automatic fetch dependencies (e.g. 501due to BitBake's automatic fetch dependencies (e.g.
502``subversion-native``). 502``subversion-native``).
503 503
504.. _ref-classes-distro_features_check:
505
506``distro_features_check.bbclass``
507=================================
508
509The ``distro_features_check`` class allows individual recipes to check
510for required and conflicting
511:term:`DISTRO_FEATURES`.
512
513This class provides support for the
514:term:`REQUIRED_DISTRO_FEATURES` and
515:term:`CONFLICT_DISTRO_FEATURES`
516variables. If any conditions specified in the recipe using the above
517variables are not met, the recipe will be skipped.
518
519.. _ref-classes-distutils: 504.. _ref-classes-distutils:
520 505
521``distutils*.bbclass`` 506``distutils*.bbclass``
@@ -656,6 +641,32 @@ Finally, here is an example that sets the root password to "1876*18":
656 usermod -P 1876*18 root; \ 641 usermod -P 1876*18 root; \
657 " 642 "
658 643
644.. _ref-classes-features_check:
645
646``features_check.bbclass``
647=================================
648
649The ``features_check`` class allows individual recipes to check
650for required and conflicting
651:term:`DISTRO_FEATURES`, :term:`MACHINE_FEATURES` or :term:`COMBINED_FEATURES`.
652
653This class provides support for the following variables:
654
655- :term:`REQUIRED_DISTRO_FEATURES`
656- :term:`CONFLICT_DISTRO_FEATURES`
657- :term:`ANY_OF_DISTRO_FEATURES`
658- ``REQUIRED_MACHINE_FEATURES``
659- ``CONFLICT_MACHINE_FEATURES``
660- ``ANY_OF_MACHINE_FEATURES``
661- ``REQUIRED_COMBINED_FEATURES``
662- ``CONFLICT_COMBINED_FEATURES``
663- ``ANY_OF_COMBINED_FEATURES``
664
665If any conditions specified in the recipe using the above
666variables are not met, the recipe will be skipped, and if the
667build system attempts to build the recipe then an error will be
668triggered.
669
659.. _ref-classes-fontcache: 670.. _ref-classes-fontcache:
660 671
661``fontcache.bbclass`` 672``fontcache.bbclass``