diff options
| author | Paul Eggleton <paul.eggleton@microsoft.com> | 2020-10-27 18:18:30 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-01-04 10:55:02 +0000 |
| commit | b591dcd33e2ae939f95dd08ecc463687de22efae (patch) | |
| tree | 7dc88ee08e71aaff071345202e6dcfeefa9ff939 /documentation | |
| parent | bb16108231e83286ab74a34edbcbee83dd7fcda1 (diff) | |
| download | poky-b591dcd33e2ae939f95dd08ecc463687de22efae.tar.gz | |
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: 3d565c61086c235f77d967acf7599e64f5944cb4)
Signed-off-by: Paul Eggleton <paul.eggleton@microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 274eb596582a22883e8b386a07cf32ed45a77d79)
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
| -rw-r--r-- | documentation/ref-manual/ref-classes.rst | 41 | ||||
| -rw-r--r-- | documentation/ref-manual/ref-variables.rst | 26 |
2 files changed, 46 insertions, 21 deletions
diff --git a/documentation/ref-manual/ref-classes.rst b/documentation/ref-manual/ref-classes.rst index 3ac4aa482b..e657fe0e55 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 | |||
| 501 | due to BitBake's automatic fetch dependencies (e.g. | 501 | due 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 | |||
| 509 | The ``distro_features_check`` class allows individual recipes to check | ||
| 510 | for required and conflicting | ||
| 511 | :term:`DISTRO_FEATURES`. | ||
| 512 | |||
| 513 | This class provides support for the | ||
| 514 | :term:`REQUIRED_DISTRO_FEATURES` and | ||
| 515 | :term:`CONFLICT_DISTRO_FEATURES` | ||
| 516 | variables. If any conditions specified in the recipe using the above | ||
| 517 | variables 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 | |||
| 649 | The ``features_check`` class allows individual recipes to check | ||
| 650 | for required and conflicting | ||
| 651 | :term:`DISTRO_FEATURES`, :term:`MACHINE_FEATURES` or :term:`COMBINED_FEATURES`. | ||
| 652 | |||
| 653 | This 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 | |||
| 665 | If any conditions specified in the recipe using the above | ||
| 666 | variables are not met, the recipe will be skipped, and if the | ||
| 667 | build system attempts to build the recipe then an error will be | ||
| 668 | triggered. | ||
| 669 | |||
| 659 | .. _ref-classes-fontcache: | 670 | .. _ref-classes-fontcache: |
| 660 | 671 | ||
| 661 | ``fontcache.bbclass`` | 672 | ``fontcache.bbclass`` |
diff --git a/documentation/ref-manual/ref-variables.rst b/documentation/ref-manual/ref-variables.rst index e9369b4777..3755f80a44 100644 --- a/documentation/ref-manual/ref-variables.rst +++ b/documentation/ref-manual/ref-variables.rst | |||
| @@ -132,6 +132,18 @@ system and gives an overview of their function and contents. | |||
| 132 | ":ref:`update-alternatives.bbclass <ref-classes-update-alternatives>`" | 132 | ":ref:`update-alternatives.bbclass <ref-classes-update-alternatives>`" |
| 133 | section. | 133 | section. |
| 134 | 134 | ||
| 135 | :term:`ANY_OF_DISTRO_FEATURES` | ||
| 136 | When inheriting the | ||
| 137 | :ref:`features_check <ref-classes-features_check>` | ||
| 138 | class, this variable identifies a list of distribution features where | ||
| 139 | at least one must be enabled in the current configuration in order | ||
| 140 | for the OpenEmbedded build system to build the recipe. In other words, | ||
| 141 | if none of the features listed in ``ANY_OF_DISTRO_FEATURES`` | ||
| 142 | appear in ``DISTRO_FEATURES`` within the current configuration, then | ||
| 143 | the recipe will be skipped, and if the build system attempts to build | ||
| 144 | the recipe then an error will be triggered. | ||
| 145 | |||
| 146 | |||
| 135 | :term:`APPEND` | 147 | :term:`APPEND` |
| 136 | An override list of append strings for each target specified with | 148 | An override list of append strings for each target specified with |
| 137 | :term:`LABELS`. | 149 | :term:`LABELS`. |
| @@ -1300,12 +1312,13 @@ system and gives an overview of their function and contents. | |||
| 1300 | 1312 | ||
| 1301 | :term:`CONFLICT_DISTRO_FEATURES` | 1313 | :term:`CONFLICT_DISTRO_FEATURES` |
| 1302 | When inheriting the | 1314 | When inheriting the |
| 1303 | :ref:`distro_features_check <ref-classes-distro_features_check>` | 1315 | :ref:`features_check <ref-classes-features_check>` |
| 1304 | class, this variable identifies distribution features that would be | 1316 | class, this variable identifies distribution features that would be |
| 1305 | in conflict should the recipe be built. In other words, if the | 1317 | in conflict should the recipe be built. In other words, if the |
| 1306 | ``CONFLICT_DISTRO_FEATURES`` variable lists a feature that also | 1318 | ``CONFLICT_DISTRO_FEATURES`` variable lists a feature that also |
| 1307 | appears in ``DISTRO_FEATURES`` within the current configuration, an | 1319 | appears in ``DISTRO_FEATURES`` within the current configuration, then |
| 1308 | error occurs and the build stops. | 1320 | the recipe will be skipped, and if the build system attempts to build |
| 1321 | the recipe then an error will be triggered. | ||
| 1309 | 1322 | ||
| 1310 | :term:`COPYLEFT_LICENSE_EXCLUDE` | 1323 | :term:`COPYLEFT_LICENSE_EXCLUDE` |
| 1311 | A space-separated list of licenses to exclude from the source | 1324 | A space-separated list of licenses to exclude from the source |
| @@ -6063,13 +6076,14 @@ system and gives an overview of their function and contents. | |||
| 6063 | 6076 | ||
| 6064 | :term:`REQUIRED_DISTRO_FEATURES` | 6077 | :term:`REQUIRED_DISTRO_FEATURES` |
| 6065 | When inheriting the | 6078 | When inheriting the |
| 6066 | :ref:`distro_features_check <ref-classes-distro_features_check>` | 6079 | :ref:`features_check <ref-classes-features_check>` |
| 6067 | class, this variable identifies distribution features that must exist | 6080 | class, this variable identifies distribution features that must exist |
| 6068 | in the current configuration in order for the OpenEmbedded build | 6081 | in the current configuration in order for the OpenEmbedded build |
| 6069 | system to build the recipe. In other words, if the | 6082 | system to build the recipe. In other words, if the |
| 6070 | ``REQUIRED_DISTRO_FEATURES`` variable lists a feature that does not | 6083 | ``REQUIRED_DISTRO_FEATURES`` variable lists a feature that does not |
| 6071 | appear in ``DISTRO_FEATURES`` within the current configuration, an | 6084 | appear in ``DISTRO_FEATURES`` within the current configuration, then |
| 6072 | error occurs and the build stops. | 6085 | the recipe will be skipped, and if the build system attempts to build |
| 6086 | the recipe then an error will be triggered. | ||
| 6073 | 6087 | ||
| 6074 | :term:`RM_WORK_EXCLUDE` | 6088 | :term:`RM_WORK_EXCLUDE` |
| 6075 | With ``rm_work`` enabled, this variable specifies a list of recipes | 6089 | With ``rm_work`` enabled, this variable specifies a list of recipes |
