<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">&lt;<a href="mailto:otavio@ossystems.com.br" target="_blank">otavio@ossystems.com.br</a>&gt;</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 &lt;<a href="mailto:clarson@kergoth.com">clarson@kergoth.com</a>&gt; wrote:<br>


&gt; On Thu, Aug 1, 2013 at 3:13 PM, Otavio Salvador &lt;<a href="mailto:otavio@ossystems.com.br">otavio@ossystems.com.br</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; This add support to list required/confliting distro features for a<br>
&gt;&gt; recipe; this avoids user mistake when building recipes/images which<br>
&gt;&gt; would not work depending on DISTRO_FEATURES option set.<br>
&gt;&gt;<br>
&gt;&gt; Adding:<br>
&gt;&gt;<br>
&gt;&gt; ,----[ Use example ]<br>
&gt;&gt; | inherit distro_features_check<br>
&gt;&gt; |<br>
&gt;&gt; | REQUIRED_DISTRO_FEATURES = &quot;x11&quot;<br>
&gt;&gt; | CONFLICT_DISTRO_FEATURES_mx6 = &quot;wayland&quot;<br>
&gt;<br>
&gt;<br>
&gt; I wonder if it would be worth doing this like PNBLACKLIST to let the recipe<br>
&gt; provide its reasoning as a message, or if that would add too much overhead.<br>
&gt; I don&#39;t know enough about this use case, but something to consider if it<br>
&gt; hasn&#39;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&#39;t come up with a way to do it using overrides as well.<br>
So, as the example in the commit log, it&#39;d be harder to make a mx6<br>
specific conflict.<br>
<br>
CONFLICT_DISTRO_FEATURES[wayland]_mx6 = &quot;Vivante GPU driver for<br>
Wayland is incompatible with X11&quot;<br>
<br>
Would the above work with current BitBake code?</blockquote></div><br>That&#39;s a good point, unfortunately I don&#39;t think flags propagate for overrides today :(. I think it would be something like CONFLICT_DISTRO_FEATURES_mx6[wayland], but I don&#39;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>