<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 28, 2013 at 12:21 PM, Eric Bénard <span dir="ltr">&lt;<a href="mailto:eric@eukrea.com" target="_blank">eric@eukrea.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Otavio,<br>
<br>
Le Tue, 28 May 2013 12:18:21 -0300,<br>
Otavio Salvador &lt;<a href="mailto:otavio@ossystems.com.br">otavio@ossystems.com.br</a>&gt; a écrit :<br>
<div class="im"><br>
&gt; On Tue, May 28, 2013 at 12:12 PM, Phil Blundell &lt;<a href="mailto:pb@pbcl.net">pb@pbcl.net</a>&gt; wrote:<br>
</div><div class="im">&gt; &gt; Also also, we&#39;ve managed without this functionality in oe-core for some<br>
&gt; &gt; time which makes me wonder how widely useful it would actually be.  If<br>
&gt; &gt; it&#39;s only going to be used by a few recipes then it could go in a class,<br>
&gt; &gt; or in in the recipes themselves, rather than adding parse time and<br>
&gt; &gt; memory footprint to every recipe.<br>
&gt; &gt;<br>
&gt;<br>
&gt; Right; let&#39;s first agree in the code so we can discuss where to put it:<br>
&gt;<br>
&gt; +        need_distro_features = d.getVar(&#39;REQUIRED_DISTRO_FEATURES&#39;, True)<br>
&gt; +        if need_distro_features:<br>
&gt; +            need_distro_features = need_distro_features.split()<br>
&gt; +            distro_features = (d.getVar(&#39;DISTRO_FEATURES&#39;, True) or<br>
&gt; &quot;&quot;).split()<br>
&gt; +            for f in need_distro_features:<br>
&gt; +                if f in distro_features:<br>
&gt; +                    break<br>
&gt; +            else:<br>
&gt; +                raise bb.parse.SkipPackage(&quot;missing required distro<br>
&gt; feature %s (not in DISTRO_FEATURES)&quot; % need_distro_features)<br>
&gt;<br>
&gt;<br>
</div>If I follow you want that to avoid this line in a recipe :<br>
COMPATIBLE_MACHINE = &quot;{@base_contains(&#39;DISTRO_FEATURES&#39;, &#39;x11&#39;, (mx5),<br>
&#39;&#39;, d)}&quot;<br>
maybe there is a more clean way to exclude this recipe when x11<br>
is not present without impacting the whole build system ?<br></blockquote><div><br></div><div style>This is one place it&#39;d be used. Wayland support is another.</div><div style><br></div><div style>It can be placed in a class, no problem ... I just want people to agree in the code so I  can send a v2. </div>
</div><div><br></div>-- <br>Otavio Salvador                             O.S. Systems<br><a href="http://www.ossystems.com.br" target="_blank">http://www.ossystems.com.br</a>        <a href="http://projetos.ossystems.com.br" target="_blank">http://projetos.ossystems.com.br</a><br>
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750<br>
</div></div>