<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Thu, Apr 21, 2016 at 5:06 PM Denys Dmytriyenko &lt;<a href="mailto:denis@denix.org">denis@denix.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">All,<br>
<br>
I&#39;ve been meaning to ask this for quite some time. It appears that Weston&#39;s<br>
DRM compositor enabled with &quot;kms&quot; PACKAGECONFIG doesn&#39;t really need the entire<br>
mesa, but it only needs libgbm. Now, mesa in OE-Core provides libgbm as one of<br>
its packages, hence virtual/mesa is added in DEPENDS for kms:<br>
<br>
PACKAGECONFIG[kms] = &quot;--enable-drm-compositor,--disable-drm-compositor,drm udev virtual/mesa mtdev&quot;<br>
<br>
On TI platforms with SGX GPU we have GLES/EGL stack (provided by proprietary<br>
blobs, yeah) and a separate libgbm, based on Rob Clark&#39;s <a href="https://github.com/robclark/libgbm" rel="noreferrer" target="_blank">https://github.com/robclark/libgbm</a><br>
Since that is enough to run Weston on our platforms, I&#39;ve been carrying this<br>
bbappend for long time:<br>
<br>
PACKAGECONFIG[kms] = &quot;--enable-drm-compositor,--disable-drm-compositor,drm udev libgbm mtdev&quot;<br>
<br>
It&#39;s been working fine for long time, but people keep on asking questions and<br>
require cleaner solution, since bbappend in a separate layer is somewhat<br>
confusing. Now, the question is what is a proper solution here:<br>
<br>
1. Change weston recipe in oe-core to depend on libgbm instead of virtual/mesa<br>
assuming that it is provided by mesa recipe and it works for other platforms.<br></blockquote><div><br></div><div>I&#39;d say this, either libgbm or virtual/libgbm. </div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2. Change our libgbm recipe to declare that it PROVIDES virtual/mesa, although<br>
it looks like a hack and is somewhat reverse...<br></blockquote><div><br></div><div>I think the libgbm recipe would basically be lying if you do that, that doesn&#39;t sound ideal. </div></div></div>