[OE-core] Adding recipe to DEPENDS only if mesa provides virtual/opengl

Burton, Ross ross.burton at intel.com
Mon Feb 26 14:49:01 UTC 2018


You could look at the value of PREFERRED_PROVIDER_virtual/libgl but
considering I've seen GL implementations being almost-mesa and providing
gbm I suspect you should have a PACKAGECONFIG that you can set from your
machine/distro configuration.

Ross

On 25 February 2018 at 13:30, Carlos Rafael Giani <dv at pseudoterminal.org>
wrote:

> A recipe here has support for Mesa 3D GBM based EGL contexts (which is
> needed for rendering directly to KMS framebuffers). However, this also
> needs libdrm.
> I'd like to detect that the provider is Mesa3D, and if so, add libdrm to
> DEPENDS.
> Perhaps it is possible to detect that libgbm is available, and I can use
> that to decide whether or not I need to add libdrm to DEPENDS?
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20180226/4d71ec11/attachment-0002.html>


More information about the Openembedded-core mailing list