aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-graphics/wayland/weston_1.1.0.bbappend
diff options
context:
space:
mode:
authorLauren Post <lauren.post@freescale.com>2013-10-01 12:01:54 -0500
committerOtavio Salvador <otavio@ossystems.com.br>2013-11-18 13:45:36 -0200
commitbce654fbc44d931494eb8f2662ada6d57c57d9dc (patch)
tree496d6a3f044d90aac5673a363dcf26c31310eae9 /recipes-graphics/wayland/weston_1.1.0.bbappend
parentc285cc44b1c0a51c3c29a1a0bf778e45b3a71ccd (diff)
downloadmeta-fsl-arm-bce654fbc44d931494eb8f2662ada6d57c57d9dc.tar.gz
meta-fsl-arm-bce654fbc44d931494eb8f2662ada6d57c57d9dc.tar.bz2
meta-fsl-arm-bce654fbc44d931494eb8f2662ada6d57c57d9dc.zip
wayland: Update weston 1.1.0 for i.MX waylanddora-next
Change-Id: Ief472ec91a57afb39e6e9a2d33898ca75fb13218 Signed-off-by: Lauren Post <lauren.post@freescale.com>
Diffstat (limited to 'recipes-graphics/wayland/weston_1.1.0.bbappend')
-rw-r--r--recipes-graphics/wayland/weston_1.1.0.bbappend47
1 files changed, 47 insertions, 0 deletions
diff --git a/recipes-graphics/wayland/weston_1.1.0.bbappend b/recipes-graphics/wayland/weston_1.1.0.bbappend
new file mode 100644
index 0000000..5b03b52
--- /dev/null
+++ b/recipes-graphics/wayland/weston_1.1.0.bbappend
@@ -0,0 +1,47 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+SRC_URI += "file://0001-DRM-condition.patch \
+ file://0002-Add-support-for-Vivante-3D-GPU.patch \
+ file://weston.sh"
+
+PACKAGECONFIG = "fbdev"
+
+EXTRA_OECONF += "\
+ --enable-simple-egl-clients \
+ --disable-libunwind \
+ --disable-xwayland-test \
+ WESTON_NATIVE_BACKEND=fbdev-backend.so"
+
+export COMPOSITOR_LIBS="-lGLESv2 -lEGL -lGAL -lwayland-server -lxkbcommon -lpixman-1"
+export COMPOSITOR_CFLAGS="-I ${STAGING_DIR_HOST}/usr/include/pixman-1 -DLINUX=1 -DEGL_API_FB -DEGL_API_WL"
+export FB_COMPOSITOR_CFLAGS="-DLINUX=1 -DEGL_API_FB -DEGL_API_WL -I $WLD/include"
+export FB_COMPOSITOR_LIBS="-lGLESv2 -lEGL -lwayland-server -lxkbcommon"
+export SIMPLE_EGL_CLIENT_CFLAGS="-DLINUX -DEGL_API_FB -DEGL_API_WL"
+
+do_install_append () {
+ install -d ${D}${sysconfdir}/profile.d/
+ install -m 0755 ${WORKDIR}/weston.sh ${D}${sysconfdir}/profile.d/
+}
+
+python __anonymous () {
+ if d.getVar('SOC_FAMILY', True) == 'mx6':
+ extra_oeconf = d.getVar('EXTRA_OECONF', True).split()
+ take_out = ['--disable-simple-egl-clients']
+ new_extra_oeconf = []
+ for i in extra_oeconf:
+ if i not in take_out:
+ new_extra_oeconf.append(i)
+ d.setVar('EXTRA_OECONF', ' '.join(new_extra_oeconf))
+
+ depends = d.getVar('DEPENDS', True).split()
+ take_out = ['mesa']
+ new_depends = []
+ for i in depends:
+ if i not in take_out:
+ new_depends.append(i)
+ d.setVar('DEPENDS', ' '.join(new_depends))
+}
+
+FILES_${PN} += "${sysconfdir}/profile.d/weston.sh"
+
+PACKAGE_ARCH_mx6 = "${MACHINE_ARCH}"