]> code.ossystems Code Review - openembedded-core.git/commit
distro_features_check.bbclass: Allow checking of required/conflicting features
authorOtavio Salvador <otavio@ossystems.com.br>
Thu, 1 Aug 2013 22:13:57 +0000 (19:13 -0300)
committerSaul Wold <sgw@linux.intel.com>
Thu, 22 Aug 2013 16:15:34 +0000 (09:15 -0700)
commita7519be6a23869ebafbf712370dab86ab92f68a5
tree007fbab635672e6701385cf59114e9534c87e442
parent6d7f5581bbfaf174edb77d92846e720e8057481c
distro_features_check.bbclass: Allow checking of required/conflicting features

This add support to list required/confliting distro features for a
recipe; this avoids user mistake when building recipes/images which
would not work depending on DISTRO_FEATURES option set.

Adding:

,----[ Use example ]
| inherit distro_features_check
|
| REQUIRED_DISTRO_FEATURES = "x11"
| CONFLICT_DISTRO_FEATURES_mx6 = "wayland"
`----

In the image recipe allow us to make clear to user that this image
needs X11 and /cannot/ be build with Wayland support in i.MX6
platforms, for example.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/distro_features_check.bbclass [new file with mode: 0644]