<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 3, 2013 at 9:55 AM, Otavio Salvador <span dir="ltr"><<a href="mailto:otavio@ossystems.com.br" target="_blank">otavio@ossystems.com.br</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Fri, Aug 2, 2013 at 6:16 PM, Chris Larson <<a href="mailto:clarson@kergoth.com">clarson@kergoth.com</a>> wrote:<br>
> On Thu, Aug 1, 2013 at 3:13 PM, Otavio Salvador <<a href="mailto:otavio@ossystems.com.br">otavio@ossystems.com.br</a>><br>
> wrote:<br>
>><br>
>> This add support to list required/confliting distro features for a<br>
>> recipe; this avoids user mistake when building recipes/images which<br>
>> would not work depending on DISTRO_FEATURES option set.<br>
>><br>
>> Adding:<br>
>><br>
>> ,----[ Use example ]<br>
>> | inherit distro_features_check<br>
>> |<br>
>> | REQUIRED_DISTRO_FEATURES = "x11"<br>
>> | CONFLICT_DISTRO_FEATURES_mx6 = "wayland"<br>
><br>
><br>
> I wonder if it would be worth doing this like PNBLACKLIST to let the recipe<br>
> provide its reasoning as a message, or if that would add too much overhead.<br>
> I don't know enough about this use case, but something to consider if it<br>
> hasn't been already.<br>
<br>
</div>I did a look now on PNBLACKLIST and while I see the value of a custom<br>
message I didn't come up with a way to do it using overrides as well.<br>
So, as the example in the commit log, it'd be harder to make a mx6<br>
specific conflict.<br>
<br>
CONFLICT_DISTRO_FEATURES[wayland]_mx6 = "Vivante GPU driver for<br>
Wayland is incompatible with X11"<br>
<br>
Would the above work with current BitBake code?</blockquote></div><br>That's a good point, unfortunately I don't think flags propagate for overrides today :(. I think it would be something like CONFLICT_DISTRO_FEATURES_mx6[wayland], but I don't think that folds into the main variable when the overrides are applied (the semantics of that may be unclear0. Oh well, nevermind :)<br>
-- <br>Christopher Larson<br>clarson at kergoth dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics
</div></div>