[OE-core] [PATCH 14/17] xserver-xf86-config: Preload graphics driver modules for musl

Burton, Ross ross.burton at intel.com
Mon Apr 20 11:20:15 UTC 2015


Hi Khem,

On 11 April 2015 at 02:20, Khem Raj <raj.khem at gmail.com> wrote:

> musl does not support BIND_LAZY intentionally, which means
> dlopen will always complain about missing symbols which is what
> X does when loading graphics drivers, here we preload the needed
> drivers for all emulator machines if libc is musl
>

musl also doesn't support dlclose() so if you're after reduced memory
footprint using musl and X together isn't what you want, as X opens many
drivers to auto-probe the hardware and then dlcloses() anything that isn't
useful.  On musl() dlclose() is no-op so you've just wasted a pile of
memory.

> +do_install_append_libc-musl () {

This override should also be machine-specific as the list of modules you'll
need to open varies per machine.  ie you haven't included EXA or GLX, and
some of the drivers you have included are probably not required for qemu
images.

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20150420/6ad8d2da/attachment-0002.html>


More information about the Openembedded-core mailing list