diff options
| author | Fabio Berton <fabio.berton@ossystems.com.br> | 2018-07-05 15:04:35 -0300 |
|---|---|---|
| committer | Otavio Salvador <otavio@ossystems.com.br> | 2018-07-05 15:49:58 -0300 |
| commit | 8e5d94f01621d25f586ca28a359023ad1d8a99d8 (patch) | |
| tree | d467f897a9467d8fe4da8f74c120a98264c00b85 | |
| parent | c2b21450b28e7c1acdee42f38e5db4f4e15a07ab (diff) | |
| download | meta-freescale-8e5d94f01621d25f586ca28a359023ad1d8a99d8.tar.gz | |
wayland: Backport recipe for version 1.15
From OE-Core commit: 6e5952fcfc13ff4b63c9376bd41a1dbba957f425
Package libwayland-egl has been moved to wayland on version 1.15+
and we need to use wayland 1.15+ to build weston i.MX 4
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
| -rw-r--r-- | conf/machine/include/imx-base.inc | 2 | ||||
| -rw-r--r-- | recipes-graphics/mesa/mesa_%.bbappend | 5 | ||||
| -rw-r--r-- | recipes-graphics/wayland/wayland/fixpathinpcfiles.patch | 32 | ||||
| -rw-r--r-- | recipes-graphics/wayland/wayland_1.15.0.bb | 46 |
4 files changed, 85 insertions, 0 deletions
diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc index bd2a2aa35..b44f8a499 100644 --- a/conf/machine/include/imx-base.inc +++ b/conf/machine/include/imx-base.inc | |||
| @@ -247,6 +247,8 @@ PREFERRED_PROVIDER_virtual/libg2d_mx6ul = "" | |||
| 247 | PREFERRED_PROVIDER_virtual/libg2d_mx6ull = "" | 247 | PREFERRED_PROVIDER_virtual/libg2d_mx6ull = "" |
| 248 | PREFERRED_PROVIDER_virtual/libg2d_mx7ulp ?= "imx-gpu-viv" | 248 | PREFERRED_PROVIDER_virtual/libg2d_mx7ulp ?= "imx-gpu-viv" |
| 249 | 249 | ||
| 250 | PREFERRED_VERSION_wayland_imxgpu ?= "1.15.0" | ||
| 251 | |||
| 250 | PREFERRED_VERSION_weston_mx6 ?= "4.0.0.imx" | 252 | PREFERRED_VERSION_weston_mx6 ?= "4.0.0.imx" |
| 251 | PREFERRED_VERSION_weston_mx7 ?= "4.0.0.imx" | 253 | PREFERRED_VERSION_weston_mx7 ?= "4.0.0.imx" |
| 252 | PREFERRED_VERSION_weston_mx8 ?= "4.0.0.imx" | 254 | PREFERRED_VERSION_weston_mx8 ?= "4.0.0.imx" |
diff --git a/recipes-graphics/mesa/mesa_%.bbappend b/recipes-graphics/mesa/mesa_%.bbappend index 60eaf8393..abd6dbf05 100644 --- a/recipes-graphics/mesa/mesa_%.bbappend +++ b/recipes-graphics/mesa/mesa_%.bbappend | |||
| @@ -40,4 +40,9 @@ do_install_append_imxgpu () { | |||
| 40 | if [ "${BACKEND}" = "wayland" ]; then | 40 | if [ "${BACKEND}" = "wayland" ]; then |
| 41 | rm -f ${D}${libdir}/pkgconfig/wayland-egl.pc | 41 | rm -f ${D}${libdir}/pkgconfig/wayland-egl.pc |
| 42 | fi | 42 | fi |
| 43 | |||
| 44 | # libwayland-egl has been moved to wayland 1.15+ | ||
| 45 | rm -f ${D}${libdir}/libwayland-egl* | ||
| 46 | rm -f ${D}${libdir}/pkgconfig/wayland-egl.pc | ||
| 47 | rmdir --ignore-fail-on-non-empty ${D}${libdir}/pkgconfig | ||
| 43 | } | 48 | } |
diff --git a/recipes-graphics/wayland/wayland/fixpathinpcfiles.patch b/recipes-graphics/wayland/wayland/fixpathinpcfiles.patch new file mode 100644 index 000000000..ad3526d98 --- /dev/null +++ b/recipes-graphics/wayland/wayland/fixpathinpcfiles.patch | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | Fix wayland-client and wayland-scanner pc files | ||
| 2 | |||
| 3 | Upstream-Status: Pending | ||
| 4 | |||
| 5 | Signed-off-by: Fabien Lahoudere <fabien.lahoudere@collabora.co.uk> | ||
| 6 | |||
| 7 | Index: wayland-1.14.0/src/wayland-client.pc.in | ||
| 8 | =================================================================== | ||
| 9 | --- wayland-1.14.0.orig/src/wayland-client.pc.in | ||
| 10 | +++ wayland-1.14.0/src/wayland-client.pc.in | ||
| 11 | @@ -1,7 +1,7 @@ | ||
| 12 | prefix=@prefix@ | ||
| 13 | exec_prefix=@exec_prefix@ | ||
| 14 | datarootdir=@datarootdir@ | ||
| 15 | -pkgdatadir=@datadir@/@PACKAGE@ | ||
| 16 | +pkgdatadir=${pc_sysrootdir}@datadir@/@PACKAGE@ | ||
| 17 | libdir=@libdir@ | ||
| 18 | includedir=@includedir@ | ||
| 19 | |||
| 20 | Index: wayland-1.14.0/src/wayland-scanner.pc.in | ||
| 21 | =================================================================== | ||
| 22 | --- wayland-1.14.0.orig/src/wayland-scanner.pc.in | ||
| 23 | +++ wayland-1.14.0/src/wayland-scanner.pc.in | ||
| 24 | @@ -2,7 +2,7 @@ prefix=@prefix@ | ||
| 25 | exec_prefix=@exec_prefix@ | ||
| 26 | datarootdir=@datarootdir@ | ||
| 27 | pkgdatadir=@datadir@/@PACKAGE@ | ||
| 28 | -wayland_scanner=@bindir@/wayland-scanner | ||
| 29 | +wayland_scanner=wayland-scanner | ||
| 30 | |||
| 31 | Name: Wayland Scanner | ||
| 32 | Description: Wayland scanner | ||
diff --git a/recipes-graphics/wayland/wayland_1.15.0.bb b/recipes-graphics/wayland/wayland_1.15.0.bb new file mode 100644 index 000000000..3cef27e58 --- /dev/null +++ b/recipes-graphics/wayland/wayland_1.15.0.bb | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | SUMMARY = "Wayland, a protocol between a compositor and clients" | ||
| 2 | DESCRIPTION = "Wayland is a protocol for a compositor to talk to its clients \ | ||
| 3 | as well as a C library implementation of that protocol. The compositor can be \ | ||
| 4 | a standalone display server running on Linux kernel modesetting and evdev \ | ||
| 5 | input devices, an X application, or a wayland client itself. The clients can \ | ||
| 6 | be traditional applications, X servers (rootless or fullscreen) or other \ | ||
| 7 | display servers." | ||
| 8 | HOMEPAGE = "http://wayland.freedesktop.org" | ||
| 9 | LICENSE = "MIT" | ||
| 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=b31d8f53b6aaf2b4985d7dd7810a70d1 \ | ||
| 11 | file://src/wayland-server.c;endline=24;md5=b8e046164a766bb1ede8ba38e9dcd7ce" | ||
| 12 | |||
| 13 | DEFAULT_PREFERENCE = "-1" | ||
| 14 | |||
| 15 | DEPENDS = "expat libxml2 libffi wayland-native" | ||
| 16 | |||
| 17 | SRC_URI = "https://wayland.freedesktop.org/releases/${BPN}-${PV}.tar.xz \ | ||
| 18 | file://fixpathinpcfiles.patch \ | ||
| 19 | " | ||
| 20 | SRC_URI[md5sum] = "b7393c17fdce9a8d383edab656c92fd2" | ||
| 21 | SRC_URI[sha256sum] = "eb3fbebb8559d56a80ad3753ec3db800f587329067962dbf65e14488b4b7aeb0" | ||
| 22 | |||
| 23 | UPSTREAM_CHECK_URI = "https://wayland.freedesktop.org/releases.html" | ||
| 24 | |||
| 25 | inherit autotools pkgconfig | ||
| 26 | |||
| 27 | EXTRA_OECONF = "--disable-documentation --with-host-scanner" | ||
| 28 | EXTRA_OECONF_class-native = "--disable-documentation --disable-libraries" | ||
| 29 | |||
| 30 | # Wayland installs a M4 macro for other projects to use, which uses the target | ||
| 31 | # pkg-config to find files. Replace pkg-config with pkg-config-native. | ||
| 32 | do_install_append_class-native() { | ||
| 33 | sed -e 's,PKG_CHECK_MODULES(.*),,g' \ | ||
| 34 | -e 's,$PKG_CONFIG,pkg-config-native,g' \ | ||
| 35 | -i ${D}/${datadir}/aclocal/wayland-scanner.m4 | ||
| 36 | } | ||
| 37 | |||
| 38 | sysroot_stage_all_append_class-target () { | ||
| 39 | rm ${SYSROOT_DESTDIR}/${datadir}/aclocal/wayland-scanner.m4 | ||
| 40 | cp ${STAGING_DATADIR_NATIVE}/aclocal/wayland-scanner.m4 ${SYSROOT_DESTDIR}/${datadir}/aclocal/ | ||
| 41 | } | ||
| 42 | |||
| 43 | FILES_${PN} = "${libdir}/*${SOLIBS}" | ||
| 44 | FILES_${PN}-dev += "${bindir} ${datadir}/wayland" | ||
| 45 | |||
| 46 | BBCLASSEXTEND = "native nativesdk" | ||
