aboutsummaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen2/recipes-graphics/mesa/mesa-wayland.inc
diff options
context:
space:
mode:
authorYannick Gicquel <yannick.gicquel@iot.bzh>2016-01-08 16:16:03 +0100
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2016-01-13 15:47:13 +0000
commite416fa6c3cb56a401e59af21db804c7597e5e3c1 (patch)
treea527fc9c8b5c4a3c7c0454fd10aa3a6aa22872a0 /meta-rcar-gen2/recipes-graphics/mesa/mesa-wayland.inc
parent900d5849ba787f9767800f463be58516b43a2f6c (diff)
mesa: update to support mesa 10.1.3 & 10.6.3
This patch fixup the build support for both yocto 1.7 and 2.0. Initial patch needs to be applied only on yocto 1.7 (mesa 10.1.3) as it is integrated upstream since mesa 10.3. Second patch is only required for yocto 2.0 recipe (mesa 10.6.3). Change-Id: I75940b3149f1c18b23dbf32fd2c4bafd1d6b241c Signed-off-by: Yannick Gicquel <yannick.gicquel@iot.bzh>
Diffstat (limited to 'meta-rcar-gen2/recipes-graphics/mesa/mesa-wayland.inc')
-rw-r--r--meta-rcar-gen2/recipes-graphics/mesa/mesa-wayland.inc15
1 files changed, 13 insertions, 2 deletions
diff --git a/meta-rcar-gen2/recipes-graphics/mesa/mesa-wayland.inc b/meta-rcar-gen2/recipes-graphics/mesa/mesa-wayland.inc
index a69d7d6..e9b4459 100644
--- a/meta-rcar-gen2/recipes-graphics/mesa/mesa-wayland.inc
+++ b/meta-rcar-gen2/recipes-graphics/mesa/mesa-wayland.inc
@@ -2,8 +2,19 @@
PACKAGECONFIG[gles] = "--enable-gles1 --disable-gles2"
PACKAGECONFIG[egl] = "--enable-egl --with-egl-platforms=wayland"
-FILESEXTRAPATHS_append := ":${THISDIR}/mesa_10.1.3/"
-SRC_URI += "file://0001-egl_dri2-fix-wayland_platform-when-drm_platform-is-n.patch"
+python do_srcrev_check() {
+ if d.getVar('SRCREV') == 'INVALID':
+ d.setVar('SRCREV', '"%s"' % d.getVarFlags('SRC_URI')['md5sum'])
+}
+do_patch[prefuncs] += "do_srcrev_check"
+
+# mesa v10.1.3 == ba6dbe2b9cab0b4de840c996b9b6a3ad
+# mesa v10.6.3 == 553e525d2f20ed48fca8f1ec3176fd83
+FILESEXTRAPATHS_append := ":${THISDIR}/mesa_10.1.3/:${THISDIR}/mesa_10.6.3/"
+SRC_URI += " \
+ file://0001-egl_dri2-fix-wayland_platform-when-drm_platform-is-n.patch;rev="ba6dbe2b9cab0b4de840c996b9b6a3ad" \
+ file://0001-dri2-wayland-fixup-gcc5-build.patch;rev="553e525d2f20ed48fca8f1ec3176fd83" \
+"
# Disable the gbm modules of mesa
EXTRA_OECONF_rcar-gen2 := "${@'${EXTRA_OECONF}'.replace('--enable-gbm', '--disable-gbm')}"