The new GPU release include new GL headers which conflict with the
ones provided by mesa. The build fails with:
,----
| ERROR: The recipe imx-gpu-viv is trying to install files into a shared
| area when those files already exist. Those files and their manifest
| location are:
|
|  .../build-framebuffer/tmp/sysroots/imx6qsabresd/usr/include/GL/gl.h
| Matched in manifest-imx6qsabresd-mesa.populate_sysroot
|
| .../build-framebuffer/tmp/sysroots/imx6qsabresd/usr/include/GL/glext.h
| Matched in manifest-imx6qsabresd-mesa.populate_sysroot
`----
This removes of the mesa's headers so the ones provided by Vivante are
used instead.
Fixes [Yocto: #5098].
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
 # FIXME: Dirty hack to allow use of Vivante GPU libGL binary
 do_install_append_mx6 () {
     if [ "${USE_VIV_LIBGL}" = "yes" ]; then
-        rm -f ${D}${libdir}/libGL.*
+        rm -f ${D}${libdir}/libGL.* \
+              ${D}${includedir}/GL/gl.h \
+              ${D}${includedir}/GL/glext.h
     fi
 }
 EXTRA_OECONF_mx6 := "${@'${EXTRA_OECONF}'.replace('--enable-glx-tls','--enable-glx')}"