Comments

This allow the addition and removal of distro features easily. To add
a feature, use:
EXTRA_DISTRO_FEATURES += "wayland"
and to remove, use '~' prefix, as:
EXTRA_DISTRO_FEATURES += "~x11"
This code has been mostly copied from Mentor Graphics public layer but
changed the variable name for a more descriptive name. The original
code can be seen at user_feature.bbclass at:
http://git.yoctoproject.org/cgit/cgit.cgi/meta-mentor
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
Changes in v4:
- Drop _prepend/_append hack and remove/add DISTRO_FEATURES (thanks to
RP for the tip).
Changes in v3:
- Drop _prepend/_append flags from DISTRO_FEATURES to avoid the re-add
Changes in v2:
- Use data copy to fix wrong prepend/append expanding.
meta/classes/base.bbclass | 4 ++++
meta/lib/oe/utils.py | 24 ++++++++++++++++++++++++
2 files changed, 28 insertions(+)