diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2017-06-09 15:04:04 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-12 15:08:32 +0100 |
commit | baeafe6dcca69a81357c8e7c3a239bf5d4fffc2c (patch) | |
tree | ffdef2f86bbdf894e84d6ae30b52182555627cc0 /meta/recipes-graphics/mesa | |
parent | 7b95d5d70172bd1e70748c132d365441c28d54e1 (diff) | |
download | poky-baeafe6dcca69a81357c8e7c3a239bf5d4fffc2c.tar.gz |
utils.py: helper function for optional include files
The main intention is to provide easy-to-use and read helper functions
for including files only when certain distro features are
set. Functionally they are the same as bb.utils.contains and
bb.utils.contains_any.
Distro features are part of the base configuration and thus safe to
use for conditional inclusion in recipes and bbappends, in contrast to
recipe variables which might still change during parsing. Therefore
the check is limited to DISTRO_FEATURES. This is the reason for having
this in OE-core instead of bitbake.
Default values are set so that no redundant parameters have to be
passed for conditional includes. As a secondary usage, the functions
can also be used in boolean checks.
(From OE-Core rev: 13024ce5aae453769b546d5fbe533443aec3d6fd)
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/mesa')
0 files changed, 0 insertions, 0 deletions