<div dir="ltr"><div><div><div><div><div><div>hi,<br><br></div>in the qemu reference machine we see this pattern:<br><br>XSERVER = &quot;xserver-xorg \                                                                                                                                                                             <br>           ${@bb.utils.contains(&#39;DISTRO_FEATURES&#39;, &#39;opengl&#39;, &#39;mesa-driver-swrast&#39;, &#39;&#39;, d)} \                                                                                                          <br> <br></div>Which is what I had done for my BSP layer as well. However this doesn&#39;t take into account non X11 based graphics config, such as when building a wayland/weston image. The mesa-driver should be conditionally pulled when &#39;mesa&#39; is pulled in.<br><br></div>I cannot find a satisfying way of specifying this better to take both cases into account.<br><br></div>we could move <br><br>${@bb.utils.contains(&#39;DISTRO_FEATURES&#39;, &#39;opengl&#39;, &#39;mesa-driver-swrast&#39;, &#39;&#39;, d)} <br><br></div>into MACHINE_RRDEPENS, but that&#39;s not quite right, since that driver is only needed when any of the mesa binary packages is in the image, and non graphics image wouldnt&#39; need that.<br><br>Since mesa produces a lot of binary packages , using RDEPENDS_xxx for all of them doesn&#39;t seem very nice neither..<br><br></div><div>What would you recommend we do? I think we need to fix the qemu images anyways.<br><br></div><div>cheers<br><br></div></div>