title: Yocto build for intel, qt5 eglfs cant find /usr/lib/dri/
body: <p>I have been building yocto for x86_64 for the intel QM87 and i have an Qt5 application that i would like to run with -platform eglfs but it errors. im trying to make my image as small as possible so i do not want to install all of x11 or wayland. is there a way to install just the drivers i need. every time i run the app it errors saying it could not find</p>
  
  <blockquote>
    <p>/usr/lib/dri/i965_dri.so
    /usr/lib/dri/kms_swrast.so
    /usr/lib/dri/swrast_dri.so
    /usr/lib/gbm/gbm_gallium_drm.so</p>
  </blockquote>
  
  <p>In my mesa.inc file i have added the packages</p>
  
  <blockquote>
    <p>PACKAGECONFIG ??= "egl gles dri gallium gallium-egl gallium-gdm \</p>
  </blockquote>
  
  <p>my conf/local.conf contains</p>
  
  <blockquote>
    <p>EXTRA_IMAGE_FEATURES = " debug-tweaks ssh-server-openssh "  > CORE_IMAGE_EXTRA_INSTALL += " libgles2-mesa "    </p>
    
    <p>PREFERRED_PROVIDER_jpeg = "libjpeg-turbo"<br>
    PREFERRED_PROVIDER_jpeg-native = "libjpeg-turbo-native"    </p>
    
    <p>IMAGE_INSTALL_append = " gcc g++ binutils libgcc libgcc-dev libstdc++ libstdc++-dev libstdc++-staticdev \<br>
    autoconf automake ccache chkconfig glib-networking glibmm \<br>
    packagegroup-core-buildessential pkgconfig  \<br>
    boost cmake zlib glib-2.0 \<br>
    ruby \<br>
    cpufrequtils \<br>
    nano \<br>
    gdb \<br>
    gstreamer \<br>
    gst-meta-video \<br>
    gst-plugins-base-app \<br>
    gst-plugins-base \<br>
    gst-plugins-good \<br>
    gst-plugins-good-rtsp \<br>
    gst-plugins-good-udp \<br>
    gst-plugins-good-rtpmanager \<br>
    gst-plugins-good-rtp \<br>
    gst-plugins-good-video4linux2 \<br>
    openssh-sftp-server \<br>
    qtbase-fonts \<br>
    qtbase-plugins \<br>
    qtbase-tools \<br>
    qtdeclarative \<br>
    qtdeclarative-plugins \<br>
    qtdeclarative-tools \<br>
    qtdeclarative-qmlplugins \<br>
    qtmultimedia \<br>
    qtmultimedia-plugins \<br>
    qtmultimedia-qmlplugins \<br>
    qtsvg \<br>
    qtsvg-plugins \<br>
    qtsensors \<br>
    qtimageformats-plugins \<br>
    qtsystems \<br>
    qtsystems-tools \<br>
    qtsystems-qmlplugins \<br>
    qtscript \<br>
    qt3d \<br>
    qt3d-qmlplugins \<br>
    qt3d-tools \<br>
    qtwebkit \<br>
    qtwebkit-qmlplugins \<br>
    qtgraphicaleffects-qmlplugins \<br>
    qtconnectivity-qmlplugins \<br>
    qtlocation-plugins \<br>
    qtlocation-qmlplugins \<br>
    cinematicexperience \<br>
    cairo pango fontconfig freetype pulseaudio dbus \<br>
    alsa-lib alsa-tools alsa-state alsa-utils-alsaconf \<br>
    i2c-tools \<br>
    libjpeg-turbo \<br>
    mesa \<br>
    libva-intel-driver \<br>
    "  </p>
    
    <p>DISTRO_FEATURES_remove = " x11 jpeg "<br>
    DISTRO_FEATURES += " wayland x11-base opengl pam"  </p>
    
    <p>BB_NUMBER_THREADS = "16"<br>
    PARALLEL_MAKE = "-j 16"  </p>
    
    <p>QT_PROVIDER = "qt5"  </p>
    
    <p>PACKAGECONFIG_GL_pn-qtbase = "gles2 linuxfb"<br>
    PACKAGECONFIG_DISTRO_pn-qtbase = "icu"  </p>
    
    <p>PACKAGECONFIG[qtbase] = "-nomake tests -opengl desktop"  </p>
    
    <p>DISTRO_FEATURES += " \<br>
    ipv4 ipv6 libc-backtrace libc-big-macros libc-bsd libc-cxx-tests libc-catgets libc-charsets libc-crypt \<br>
    libc-crypt-ufc libc-db-aliases libc-envz libc-fcvt libc-fmtmsg libc-fstab libc-ftraverse \<br>
    libc-getlogin libc-idn libc-inet libc-inet-anl libc-libm libc-locales libc-locale-code \<br>
    libc-memusage libc-nis libc-nsswitch libc-rcmd libc-rtld-debug libc-spawn libc-streams libc-sunrpc \<br>
    libc-utmp libc-utmpx libc-wordexp libc-posix-clang-wchar libc-posix-regexp libc-posix-regexp-glibc \<br>
    libc-posix-wchar-io \<br>
    libgl1-mesa-dri \<br>
    "</p>
  </blockquote>