Add support for the open source reverse engineered drivers for the Mali-4xx GPUs.
Signed-off-by: Alistair Francis <[email protected]> --- .../recipes-graphics/mesa/mesa-lima_18.3.0.bb | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 meta/recipes-graphics/mesa/mesa-lima_18.3.0.bb diff --git a/meta/recipes-graphics/mesa/mesa-lima_18.3.0.bb b/meta/recipes-graphics/mesa/mesa-lima_18.3.0.bb new file mode 100644 index 0000000000..0f26ede2c4 --- /dev/null +++ b/meta/recipes-graphics/mesa/mesa-lima_18.3.0.bb @@ -0,0 +1,23 @@ +require ${BPN}.inc + +BRANCH = "lima-18.3" +SRCREV = "8e713e4781982c700bfc7b09279146189d525a86" +SRC_URI = "git://gitlab.freedesktop.org/lima/mesa.git;branch=${BRANCH} \ +" + +S = "${WORKDIR}/git" + +DEPENDS += "python3-native python3-mako python3-mako-native gettext-native libdrm" +DEPENDS += "${@bb.utils.contains('PACKAGECONFIG', 'x11', 'xrandr', '', d)}" + +PACKAGECONFIG[sun4i] = "" +GALLIUMDRIVERS_append ="${@bb.utils.contains('PACKAGECONFIG', 'sun4i', ',lima,sun4i', '', d)}" + +#because we cannot rely on the fact that all apps will use pkgconfig, +#make eglplatform.h independent of MESA_EGL_NO_X11_HEADER +do_install_append() { + if ${@bb.utils.contains('PACKAGECONFIG', 'egl', 'true', 'false', d)}; then + sed -i -e 's/^#if defined(MESA_EGL_NO_X11_HEADERS)$/#if defined(MESA_EGL_NO_X11_HEADERS) || ${@bb.utils.contains('PACKAGECONFIG', 'x11', '0', '1', d)}/' ${D}${includedir}/EGL/eglplatform.h + fi +} + -- 2.20.1 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
