Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/7] Wayland/Mesa/Clutter improvements
@ 2013-06-20 16:08 Ross Burton
  2013-06-20 16:08 ` [PATCH 1/7] weston-init: fix a typo in a user-visible message Ross Burton
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Ross Burton @ 2013-06-20 16:08 UTC (permalink / raw)
  To: openembedded-core

Hi,

Here are the bits of my Wayland working branch that are good to merge.  Some
fixes to Weston, a Mesa tweak, and Wayland-enabling for Cogl and Clutter.

Ross

The following changes since commit 590010a6525b0e1bc1de73e794764e23404591df:

  core-image-weston: add weston-examples to the image (2013-06-18 17:33:17 +0100)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib ross/wayland-safe

for you to fetch changes up to 8c481d40a6746d31d566a9db0b5bbb395ad54031:

  core-image-weston: add clutter examples (2013-06-20 17:06:11 +0100)

----------------------------------------------------------------
Ross Burton (7):
      weston-init: fix a typo in a user-visible message
      weston: add patches to make weston-launch work
      mesa: remove a redundant do_install tweak
      weston: move mtdev dependency to the DRM backend, where it belongs
      cogl: add Wayland support
      clutter: add Wayland support
      core-image-weston: add clutter examples

 meta/recipes-graphics/clutter/clutter-1.0.inc      |    8 ++-
 meta/recipes-graphics/cogl/cogl-1.0.inc            |   24 ++++---
 meta/recipes-graphics/images/core-image-weston.bb  |    2 +-
 meta/recipes-graphics/mesa/mesa.inc                |    3 -
 meta/recipes-graphics/wayland/weston-init/init     |    2 +-
 meta/recipes-graphics/wayland/weston/groups.patch  |   47 +++++++++++++
 .../wayland/weston/weston-launch-shell.patch       |   74 ++++++++++++++++++++
 meta/recipes-graphics/wayland/weston_1.1.0.bb      |    6 +-
 8 files changed, 148 insertions(+), 18 deletions(-)
 create mode 100644 meta/recipes-graphics/wayland/weston/groups.patch
 create mode 100644 meta/recipes-graphics/wayland/weston/weston-launch-shell.patch

Ross Burton (7):
  weston-init: fix a typo in a user-visible message
  weston: add patches to make weston-launch work
  mesa: remove a redundant do_install tweak
  weston: move mtdev dependency to the DRM backend, where it belongs
  cogl: add Wayland support
  clutter: add Wayland support
  core-image-weston: add clutter examples

 meta/recipes-graphics/clutter/clutter-1.0.inc      |    8 ++-
 meta/recipes-graphics/cogl/cogl-1.0.inc            |   24 ++++---
 meta/recipes-graphics/images/core-image-weston.bb  |    2 +-
 meta/recipes-graphics/mesa/mesa.inc                |    3 -
 meta/recipes-graphics/wayland/weston-init/init     |    2 +-
 meta/recipes-graphics/wayland/weston/groups.patch  |   47 +++++++++++++
 .../wayland/weston/weston-launch-shell.patch       |   74 ++++++++++++++++++++
 meta/recipes-graphics/wayland/weston_1.1.0.bb      |    6 +-
 8 files changed, 148 insertions(+), 18 deletions(-)
 create mode 100644 meta/recipes-graphics/wayland/weston/groups.patch
 create mode 100644 meta/recipes-graphics/wayland/weston/weston-launch-shell.patch

-- 
1.7.10.4



^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 1/7] weston-init: fix a typo in a user-visible message
  2013-06-20 16:08 [PATCH 0/7] Wayland/Mesa/Clutter improvements Ross Burton
@ 2013-06-20 16:08 ` Ross Burton
  2013-06-20 16:08 ` [PATCH 2/7] weston: add patches to make weston-launch work Ross Burton
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Ross Burton @ 2013-06-20 16:08 UTC (permalink / raw)
  To: openembedded-core

This is the weston init script, not X.

Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 meta/recipes-graphics/wayland/weston-init/init |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/wayland/weston-init/init b/meta/recipes-graphics/wayland/weston-init/init
index 3c73e7c..daa7f23 100644
--- a/meta/recipes-graphics/wayland/weston-init/init
+++ b/meta/recipes-graphics/wayland/weston-init/init
@@ -38,7 +38,7 @@ case "$1" in
   ;;
 
   stop)
-        echo "Stopping XServer"
+        echo "Stopping Weston"
         killproc weston
   ;;
 
-- 
1.7.10.4



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/7] weston: add patches to make weston-launch work
  2013-06-20 16:08 [PATCH 0/7] Wayland/Mesa/Clutter improvements Ross Burton
  2013-06-20 16:08 ` [PATCH 1/7] weston-init: fix a typo in a user-visible message Ross Burton
@ 2013-06-20 16:08 ` Ross Burton
  2013-06-20 16:08 ` [PATCH 3/7] mesa: remove a redundant do_install tweak Ross Burton
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Ross Burton @ 2013-06-20 16:08 UTC (permalink / raw)
  To: openembedded-core


Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 meta/recipes-graphics/wayland/weston/groups.patch  |   47 +++++++++++++
 .../wayland/weston/weston-launch-shell.patch       |   74 ++++++++++++++++++++
 meta/recipes-graphics/wayland/weston_1.1.0.bb      |    2 +
 3 files changed, 123 insertions(+)
 create mode 100644 meta/recipes-graphics/wayland/weston/groups.patch
 create mode 100644 meta/recipes-graphics/wayland/weston/weston-launch-shell.patch

diff --git a/meta/recipes-graphics/wayland/weston/groups.patch b/meta/recipes-graphics/wayland/weston/groups.patch
new file mode 100644
index 0000000..9dc043a
--- /dev/null
+++ b/meta/recipes-graphics/wayland/weston/groups.patch
@@ -0,0 +1,47 @@
+Upstream-Status: Submitted (https://bugs.freedesktop.org/show_bug.cgi?id=65933)
+Signed-off-by: Ross Burton <ross.burton@intel.com>
+
+From 42821739a228a85ce3432be1796858e5cc31688b Mon Sep 17 00:00:00 2001
+From: Quentin Glidic <sardemff7+git@sardemff7.net>
+Date: Wed, 19 Jun 2013 15:27:11 +0200
+Subject: [PATCH weston] weston-launch: Set all groups for user
+
+Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
+---
+ configure.ac        | 2 +-
+ src/weston-launch.c | 4 ++++
+ 2 files changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index b625221..db3feb0 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -52,7 +52,7 @@ AC_CHECK_DECL(CLOCK_MONOTONIC,[],
+ 	      [[#include <time.h>]])
+ AC_CHECK_HEADERS([execinfo.h])
+ 
+-AC_CHECK_FUNCS([mkostemp strchrnul])
++AC_CHECK_FUNCS([mkostemp strchrnul initgroups])
+ 
+ COMPOSITOR_MODULES="wayland-server >= 1.1.90 xkbcommon pixman-1"
+ 
+diff --git a/src/weston-launch.c b/src/weston-launch.c
+index 76dcede..7d7b556 100644
+--- a/src/weston-launch.c
++++ b/src/weston-launch.c
+@@ -631,9 +631,13 @@ main(int argc, char *argv[])
+ 		}
+ 
+ 		if (setgid(wl.pw->pw_gid) < 0 ||
++#ifdef HAVE_INITGROUPS
++                    initgroups(wl.pw->pw_name, wl.pw->pw_gid) < 0 ||
++#endif
+ 		    setuid(wl.pw->pw_uid) < 0)
+ 			error(1, errno, "dropping privilidges failed");
+ 
++
+ 		if (sleep_fork) {
+ 			if (wl.verbose)
+ 				printf("weston-launch: waiting %d seconds\n", sleep_fork);
+-- 
+1.8.3
diff --git a/meta/recipes-graphics/wayland/weston/weston-launch-shell.patch b/meta/recipes-graphics/wayland/weston/weston-launch-shell.patch
new file mode 100644
index 0000000..ffe0608
--- /dev/null
+++ b/meta/recipes-graphics/wayland/weston/weston-launch-shell.patch
@@ -0,0 +1,74 @@
+Upstream-Status: Backport
+Signed-off-by: Ross Burton <ross.burton@intel.com>
+
+From ff3230952a68077669e0ea0ac3ceb234273556fc Mon Sep 17 00:00:00 2001
+From: Quentin Glidic <sardemff7+git@sardemff7.net>
+Date: Fri, 17 May 2013 16:20:37 +0200
+Subject: [PATCH] weston-launch: Run weston in the user login shell
+
+This patch brings back the user environment from the shell.
+In the future, weston-launch could create the Wayland socket earlier, in
+which case the user's shell could be used to run Wayland-specific tools
+in the new Weston session.
+
+Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
+---
+ src/weston-launch.c |   19 ++++++++++++++++---
+ 1 file changed, 16 insertions(+), 3 deletions(-)
+
+diff --git a/src/weston-launch.c b/src/weston-launch.c
+index 64d4a8a..89c3c5a 100644
+--- a/src/weston-launch.c
++++ b/src/weston-launch.c
+@@ -60,6 +60,8 @@
+ 
+ #include "weston-launch.h"
+ 
++#define MAX_ARGV_SIZE 256
++
+ struct weston_launch {
+ 	struct pam_conv pc;
+ 	pam_handle_t *ph;
+@@ -523,8 +525,9 @@ main(int argc, char *argv[])
+ 	struct weston_launch wl;
+ 	char **env;
+ 	int i, c;
+-	char **child_argv;
++	char *child_argv[MAX_ARGV_SIZE];
+ 	char *tty = NULL, *new_user = NULL;
++	char *term;
+ 	int sleep_fork = 0;
+ 	struct option opts[] = {
+ 		{ "user",    required_argument, NULL, 'u' },
+@@ -562,8 +565,8 @@ main(int argc, char *argv[])
+ 		}
+ 	}
+ 
+-	child_argv = &argv[optind-1];
+-	child_argv[0] = BINDIR "/weston";
++	if ((argc - optind) > (MAX_ARGV_SIZE - 5))
++		error(1, E2BIG, "Too many arguments to pass to weston");
+ 
+ 	if (new_user)
+ 		wl.pw = getpwnam(new_user);
+@@ -572,7 +575,17 @@ main(int argc, char *argv[])
+ 	if (wl.pw == NULL)
+ 		error(1, errno, "failed to get username");
+ 
++	child_argv[0] = wl.pw->pw_shell;
++	child_argv[1] = "-l";
++	child_argv[2] = "-c";
++	child_argv[3] = BINDIR "/weston \"$@\"";
++	child_argv[4] = "weston";
++	for (i = 0; i < (argc - optind); ++i)
++		child_argv[5+i] = argv[optind+i];
++
++	term = getenv("TERM");
+ 	clearenv();
++	setenv("TERM", term, 1);
+ 	setenv("USER", wl.pw->pw_name, 1);
+ 	setenv("LOGNAME", wl.pw->pw_name, 1);
+ 	setenv("HOME", wl.pw->pw_dir, 1);
+-- 
+1.7.10.4
+
diff --git a/meta/recipes-graphics/wayland/weston_1.1.0.bb b/meta/recipes-graphics/wayland/weston_1.1.0.bb
index 026f136..ee33be6 100644
--- a/meta/recipes-graphics/wayland/weston_1.1.0.bb
+++ b/meta/recipes-graphics/wayland/weston_1.1.0.bb
@@ -7,6 +7,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=275efac2559a224527bd4fd593d38466 \
 
 SRC_URI = "http://wayland.freedesktop.org/releases/${BPN}-${PV}.tar.xz \
            file://install-examples.patch \
+           file://weston-launch-shell.patch \
+           file://groups.patch \
            file://weston.png \
            file://weston.desktop"
 SRC_URI[md5sum] = "dd9f3043fc5228c6bc4e99873fae2254"
-- 
1.7.10.4



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 3/7] mesa: remove a redundant do_install tweak
  2013-06-20 16:08 [PATCH 0/7] Wayland/Mesa/Clutter improvements Ross Burton
  2013-06-20 16:08 ` [PATCH 1/7] weston-init: fix a typo in a user-visible message Ross Burton
  2013-06-20 16:08 ` [PATCH 2/7] weston: add patches to make weston-launch work Ross Burton
@ 2013-06-20 16:08 ` Ross Burton
  2013-06-20 16:08 ` [PATCH 4/7] weston: move mtdev dependency to the DRM backend, where it belongs Ross Burton
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Ross Burton @ 2013-06-20 16:08 UTC (permalink / raw)
  To: openembedded-core

Mesa isn't incorrectly installing GLU headers anymore, so we don't need to
delete them.

Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 meta/recipes-graphics/mesa/mesa.inc |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index 6aba0cb..01dbbad 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -78,9 +78,6 @@ PACKAGES =+ "libegl-mesa libegl-mesa-dev \
             "
 
 do_install_append () {
-    # GLU is now in libglu (this shouldn't be required in Mesa 9.x)
-    rm -f ${D}${includedir}/GL/glu*
-
     # Drivers never need libtool .la files
     rm -f ${D}${libdir}/dri/*.la
     rm -f ${D}${libdir}/egl/*.la
-- 
1.7.10.4



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 4/7] weston: move mtdev dependency to the DRM backend, where it belongs
  2013-06-20 16:08 [PATCH 0/7] Wayland/Mesa/Clutter improvements Ross Burton
                   ` (2 preceding siblings ...)
  2013-06-20 16:08 ` [PATCH 3/7] mesa: remove a redundant do_install tweak Ross Burton
@ 2013-06-20 16:08 ` Ross Burton
  2013-06-20 16:08 ` [PATCH 5/7] cogl: add Wayland support Ross Burton
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Ross Burton @ 2013-06-20 16:08 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 meta/recipes-graphics/wayland/weston_1.1.0.bb |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-graphics/wayland/weston_1.1.0.bb b/meta/recipes-graphics/wayland/weston_1.1.0.bb
index ee33be6..7327b98 100644
--- a/meta/recipes-graphics/wayland/weston_1.1.0.bb
+++ b/meta/recipes-graphics/wayland/weston_1.1.0.bb
@@ -17,7 +17,7 @@ SRC_URI[sha256sum] = "e7715d2c731f77a729c994a599ffdaebac1307b2dd9336136706869fa5
 
 inherit autotools pkgconfig useradd
 
-DEPENDS = "libxkbcommon gdk-pixbuf pixman cairo glib-2.0 mtdev jpeg"
+DEPENDS = "libxkbcommon gdk-pixbuf pixman cairo glib-2.0 jpeg"
 DEPENDS += "wayland mesa virtual/egl"
 
 EXTRA_OECONF = "--disable-android-compositor \
@@ -40,7 +40,7 @@ PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'wayland', 'kms wayland',
 # Compositor choices
 #
 # Weston on KMS
-PACKAGECONFIG[kms] = "--enable-drm-compositor --enable-weston-launch,--disable-drm-compositor --disable-weston-launch,drm udev mesa libpam"
+PACKAGECONFIG[kms] = "--enable-drm-compositor --enable-weston-launch,--disable-drm-compositor --disable-weston-launch,drm udev mesa mtdev libpam"
 # Weston on Wayland (nested Weston)
 PACKAGECONFIG[wayland] = "--enable-wayland-compositor,--disable-wayland-compositor,mesa"
 # Weston on X11
-- 
1.7.10.4



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 5/7] cogl: add Wayland support
  2013-06-20 16:08 [PATCH 0/7] Wayland/Mesa/Clutter improvements Ross Burton
                   ` (3 preceding siblings ...)
  2013-06-20 16:08 ` [PATCH 4/7] weston: move mtdev dependency to the DRM backend, where it belongs Ross Burton
@ 2013-06-20 16:08 ` Ross Burton
  2013-06-20 16:08 ` [PATCH 6/7] clutter: " Ross Burton
  2013-06-20 16:08 ` [PATCH 7/7] core-image-weston: add clutter examples Ross Burton
  6 siblings, 0 replies; 8+ messages in thread
From: Ross Burton @ 2013-06-20 16:08 UTC (permalink / raw)
  To: openembedded-core

Add PACKAGECONFIG stanzas for Wayland client and server, and respect the x11 and
wayland DISTRO_FEATURES to enable the relevant backends as appropriate by
default.

Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 meta/recipes-graphics/cogl/cogl-1.0.inc |   24 ++++++++++++++++--------
 1 file changed, 16 insertions(+), 8 deletions(-)

diff --git a/meta/recipes-graphics/cogl/cogl-1.0.inc b/meta/recipes-graphics/cogl/cogl-1.0.inc
index c9c6165..55eb003 100644
--- a/meta/recipes-graphics/cogl/cogl-1.0.inc
+++ b/meta/recipes-graphics/cogl/cogl-1.0.inc
@@ -13,11 +13,12 @@ PACKAGES =+ "${PN}-examples"
 AUTOTOOLS_AUXDIR = "${S}/build"
 
 # Extra DEPENDS for PACKAGECONFIG
-EDEPENDS_GL    = "virtual/libgl libdrm"
+EDEPENDS_GL = "virtual/libgl libdrm"
 EDEPENDS_GLES2 = "virtual/libgles2"
-EDEPENDS_KMS   = "libdrm virtual/egl"
-EDEPENDS_EGL   = "virtual/egl"
-EDEPENDS_X11   = "virtual/libx11 libxcomposite libxfixes libxi libxrandr"
+EDEPENDS_KMS = "libdrm virtual/egl"
+EDEPENDS_EGL = "virtual/egl"
+EDEPENDS_X11 = "virtual/libx11 libxcomposite libxfixes libxi libxrandr"
+EDEPENDS_WAYLAND = "wayland"
 
 # Extra RDEPENDS for PACKAGECONFIG
 # This has to be explictly listed, because cogl dlopens the backends
@@ -34,15 +35,22 @@ EXTRA_OECONF += "--disable-introspection	\
 PACKAGECONFIG[gl] = "--enable-gl,--disable-gl,${EDEPENDS_GL},${ERDEPENDS_GL}"
 PACKAGECONFIG[gles2] = "--enable-gles2,--disable-gles2,${EDEPENDS_GLES2}, ${ERDEPENDS_GLES2}"
 
-# egl backends
+# EGL backends
 PACKAGECONFIG[egl-kms] = "--enable-kms-egl-platform,--disable-kms-egl-platform,${EDEPENDS_KMS}"
 PACKAGECONFIG[egl-null] = "--enable-null-egl-platform,--disable-null-egl-platform"
 PACKAGECONFIG[egl-x11] = "--enable-xlib-egl-platform,--disable-xlib-egl-platform,${EDEPENDS_X11}"
+PACKAGECONFIG[egl-wayland] = "--enable-wayland-egl-platform,--disable-wayland-egl-platform,${EDEPENDS_WAYLAND}"
 
-# glx
+# GLX
 PACKAGECONFIG[glx] = "--enable-glx,--disable-glx,${EDEPENDS_GL} ${EDEPENDS_X11}"
 
-# Default to GLX
-PACKAGECONFIG ??= "gl glx"
+# Wayland server-side
+PACKAGECONFIG[wayland-server] = "--enable-wayland-egl-server,--disable-wayland-egl-server,${EDEPENDS_WAYLAND}"
+
+# Respect the DISTRO_FEATURES to pull in GLX or Wayland as appropriate by
+# default.
+PACKAGECONFIG ??= "gl \
+                   ${@base_contains('DISTRO_FEATURES', 'wayland', 'egl-wayland', '', d)} \
+                   ${@base_contains('DISTRO_FEATURES', 'x11', 'glx', '', d)}"
 
 FILES_${PN}-examples = "${bindir}/* ${datadir}/cogl/examples-data/*"
-- 
1.7.10.4



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 6/7] clutter: add Wayland support
  2013-06-20 16:08 [PATCH 0/7] Wayland/Mesa/Clutter improvements Ross Burton
                   ` (4 preceding siblings ...)
  2013-06-20 16:08 ` [PATCH 5/7] cogl: add Wayland support Ross Burton
@ 2013-06-20 16:08 ` Ross Burton
  2013-06-20 16:08 ` [PATCH 7/7] core-image-weston: add clutter examples Ross Burton
  6 siblings, 0 replies; 8+ messages in thread
From: Ross Burton @ 2013-06-20 16:08 UTC (permalink / raw)
  To: openembedded-core

Add PACKAGECONFIG stanzas for Wayland client and server, and respect the x11 and
wayland DISTRO_FEATURES to enable the relevant backends as appropriate by
default.

Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 meta/recipes-graphics/clutter/clutter-1.0.inc |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-graphics/clutter/clutter-1.0.inc b/meta/recipes-graphics/clutter/clutter-1.0.inc
index 68cb22b..f51c740 100644
--- a/meta/recipes-graphics/clutter/clutter-1.0.inc
+++ b/meta/recipes-graphics/clutter/clutter-1.0.inc
@@ -13,6 +13,7 @@ AUTOTOOLS_AUXDIR = "${S}/build"
 EDEPENDS_X11 = "virtual/libx11 libxi libxfixes"
 EDEPENDS_GLX = "virtual/libgl"
 EDEPENDS_EGL = "virtual/egl"
+EDEPENDS_WAYLAND = "wayland libxkbcommon gdk-pixbuf"
 
 EDEPENDS_EVDEV = "libxkbcommon"
 ERDEPENDS_EVDEV = "xkeyboard-config"
@@ -22,8 +23,6 @@ EXTRA_OECONF += "--disable-introspection	\
 	     	 --disable-quartz-backend	\
 	     	 --disable-win32-backend	\
 	     	 --disable-gdk-backend		\
-	     	 --disable-wayland-backend	\
-	     	 --disable-wayland-compositor	\
 	     	 --disable-cex100-backend	\
 	     	 --disable-tslib-input		\
 	    	"
@@ -32,9 +31,12 @@ PACKAGECONFIG[x11] = "--enable-x11-backend,--disable-x11-backend,${EDEPENDS_X11}
 PACKAGECONFIG[glx] = ",,${EDEPENDS_X11} ${EDEPENDS_GLX}"
 PACKAGECONFIG[egl] = "--enable-egl-backend,--disable-egl-backend,${EDEPENDS_EGL}"
 PACKAGECONFIG[evdev] = "--enable-evdev-input,--disable-evdev-input,${EDEPENDS_EVDEV},${ERDEPENDS_EVDEV}"
+PACKAGECONFIG[wayland] = "--enable-wayland-backend,--disable-wayland-backend,${EDEPENDS_WAYLAND}"
+PACKAGECONFIG[wayland-compositor] = "--enable-wayland-compositor,--disable-wayland-compositor,wayland"
 
 # Default configuration, distros might want to override
-PACKAGECONFIG ??= "x11 glx"
+PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \
+                   ${@base_contains('DISTRO_FEATURES', 'x11', 'glx x11', '', d)}"
 
 FILES_${PN}-examples = "${bindir}/test-* ${pkgdatadir}/redhand.png"
 
-- 
1.7.10.4



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 7/7] core-image-weston: add clutter examples
  2013-06-20 16:08 [PATCH 0/7] Wayland/Mesa/Clutter improvements Ross Burton
                   ` (5 preceding siblings ...)
  2013-06-20 16:08 ` [PATCH 6/7] clutter: " Ross Burton
@ 2013-06-20 16:08 ` Ross Burton
  6 siblings, 0 replies; 8+ messages in thread
From: Ross Burton @ 2013-06-20 16:08 UTC (permalink / raw)
  To: openembedded-core

Now that Clutter supports Wayland too, add the Clutter example app to the image.

Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 meta/recipes-graphics/images/core-image-weston.bb |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/images/core-image-weston.bb b/meta/recipes-graphics/images/core-image-weston.bb
index cb9d7c7..064133f 100644
--- a/meta/recipes-graphics/images/core-image-weston.bb
+++ b/meta/recipes-graphics/images/core-image-weston.bb
@@ -6,4 +6,4 @@ LICENSE = "MIT"
 
 inherit core-image
 
-CORE_IMAGE_BASE_INSTALL += "weston weston-init weston-examples gtk+3-demo"
+CORE_IMAGE_BASE_INSTALL += "weston weston-init weston-examples gtk+3-demo clutter-1.0-examples"
-- 
1.7.10.4



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-06-20 16:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-20 16:08 [PATCH 0/7] Wayland/Mesa/Clutter improvements Ross Burton
2013-06-20 16:08 ` [PATCH 1/7] weston-init: fix a typo in a user-visible message Ross Burton
2013-06-20 16:08 ` [PATCH 2/7] weston: add patches to make weston-launch work Ross Burton
2013-06-20 16:08 ` [PATCH 3/7] mesa: remove a redundant do_install tweak Ross Burton
2013-06-20 16:08 ` [PATCH 4/7] weston: move mtdev dependency to the DRM backend, where it belongs Ross Burton
2013-06-20 16:08 ` [PATCH 5/7] cogl: add Wayland support Ross Burton
2013-06-20 16:08 ` [PATCH 6/7] clutter: " Ross Burton
2013-06-20 16:08 ` [PATCH 7/7] core-image-weston: add clutter examples Ross Burton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox