weston: Set require-input to false in weston.ini 01/11301/4
authorLeon Anavi <leon.anavi@konsulko.com>
Fri, 13 Oct 2017 20:00:50 +0000 (23:00 +0300)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Sat, 14 Oct 2017 15:24:59 +0000 (15:24 +0000)
Revert the previous fix for launching Weston 2.0
without input devices and achieve the same result
by setting the directive require-input to false
in the configuration file weston.ini. This is a
new feature which has been introduced in Weston
since version 2.0.

Bug-AGL: SPEC-936

Change-Id: I65ccc0d9942d86420cd801f571ccbefe58812796
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/11301
Reviewed-by: Matt Ranostay <matt.ranostay@konsulko.com>
Reviewed-by: José Bollo <jobol@nonadev.net>
Reviewed-by: Thomas Rini <trini@konsulko.com>
Reviewed-by: Matt Porter <mporter@konsulko.com>
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>

meta-agl/recipes-graphics/wayland/weston-ini-conf.bb
meta-agl/recipes-graphics/wayland/weston/0001-compositor-drm.c-Launch-without-input-devices.patch [deleted file]
meta-agl/recipes-graphics/wayland/weston_2.0.0.bbappend

index c7eee62..0edc05d 100644 (file)
@@ -11,6 +11,7 @@ DEFAULT_SCREEN[name]?="HDMI-A-1"
 
 WESTONCORE[shell]??="desktop-shell.so"
 WESTONCORE[backend]??="drm-backend.so"
+WESTONCORE[require-input]??="false"
 
 WESTONSHELL[locking]="true"
 # hide panel
diff --git a/meta-agl/recipes-graphics/wayland/weston/0001-compositor-drm.c-Launch-without-input-devices.patch b/meta-agl/recipes-graphics/wayland/weston/0001-compositor-drm.c-Launch-without-input-devices.patch
deleted file mode 100644 (file)
index 6b47b5e..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-From 9da4f513547b4a4f0972cc718b55ba3fc5271c87 Mon Sep 17 00:00:00 2001
-From: Leon Anavi <leon.anavi@konsulko.com>
-Date: Tue, 10 Oct 2017 17:21:09 +0300
-Subject: [PATCH] compositor-drm.c: Launch without input devices
-
-Launch Weston 2.0 even if there are no input devices.
-
-Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
----
- libweston/compositor-drm.c | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c
-index 1d38f05..afe0dea 100644
---- a/libweston/compositor-drm.c
-+++ b/libweston/compositor-drm.c
-@@ -3278,7 +3278,6 @@ drm_backend_create(struct weston_compositor *compositor,
-                           compositor, b->udev, seat_id,
-                           config->configure_device) < 0) {
-               weston_log("failed to create input devices\n");
--              goto err_sprite;
-       }
-       b->connector = config->connector;
--- 
-2.7.4
-
index 32df379..65f34bc 100644 (file)
@@ -2,7 +2,6 @@ FILESEXTRAPATHS_append := ":${THISDIR}/${PN}"
 
 SRC_URI_append = "\
     file://0001-Allow-regular-users-to-launch-Weston_2.0.0.patch \
-    file://0001-compositor-drm.c-Launch-without-input-devices.patch \
     "
 
 EXTRA_OECONF_append = " --enable-sys-uid"