diff options
Diffstat (limited to 'recipes-graphics/wayland/weston_1.1.0.bbappend')
-rw-r--r-- | recipes-graphics/wayland/weston_1.1.0.bbappend | 47 |
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 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
2 | |||
3 | SRC_URI += "file://0001-DRM-condition.patch \ | ||
4 | file://0002-Add-support-for-Vivante-3D-GPU.patch \ | ||
5 | file://weston.sh" | ||
6 | |||
7 | PACKAGECONFIG = "fbdev" | ||
8 | |||
9 | EXTRA_OECONF += "\ | ||
10 | --enable-simple-egl-clients \ | ||
11 | --disable-libunwind \ | ||
12 | --disable-xwayland-test \ | ||
13 | WESTON_NATIVE_BACKEND=fbdev-backend.so" | ||
14 | |||
15 | export COMPOSITOR_LIBS="-lGLESv2 -lEGL -lGAL -lwayland-server -lxkbcommon -lpixman-1" | ||
16 | export COMPOSITOR_CFLAGS="-I ${STAGING_DIR_HOST}/usr/include/pixman-1 -DLINUX=1 -DEGL_API_FB -DEGL_API_WL" | ||
17 | export FB_COMPOSITOR_CFLAGS="-DLINUX=1 -DEGL_API_FB -DEGL_API_WL -I $WLD/include" | ||
18 | export FB_COMPOSITOR_LIBS="-lGLESv2 -lEGL -lwayland-server -lxkbcommon" | ||
19 | export SIMPLE_EGL_CLIENT_CFLAGS="-DLINUX -DEGL_API_FB -DEGL_API_WL" | ||
20 | |||
21 | do_install_append () { | ||
22 | install -d ${D}${sysconfdir}/profile.d/ | ||
23 | install -m 0755 ${WORKDIR}/weston.sh ${D}${sysconfdir}/profile.d/ | ||
24 | } | ||
25 | |||
26 | python __anonymous () { | ||
27 | if d.getVar('SOC_FAMILY', True) == 'mx6': | ||
28 | extra_oeconf = d.getVar('EXTRA_OECONF', True).split() | ||
29 | take_out = ['--disable-simple-egl-clients'] | ||
30 | new_extra_oeconf = [] | ||
31 | for i in extra_oeconf: | ||
32 | if i not in take_out: | ||
33 | new_extra_oeconf.append(i) | ||
34 | d.setVar('EXTRA_OECONF', ' '.join(new_extra_oeconf)) | ||
35 | |||
36 | depends = d.getVar('DEPENDS', True).split() | ||
37 | take_out = ['mesa'] | ||
38 | new_depends = [] | ||
39 | for i in depends: | ||
40 | if i not in take_out: | ||
41 | new_depends.append(i) | ||
42 | d.setVar('DEPENDS', ' '.join(new_depends)) | ||
43 | } | ||
44 | |||
45 | FILES_${PN} += "${sysconfdir}/profile.d/weston.sh" | ||
46 | |||
47 | PACKAGE_ARCH_mx6 = "${MACHINE_ARCH}" | ||