diff options
author | 2022-04-12 13:17:26 +0900 | |
---|---|---|
committer | 2022-04-27 13:04:04 +0900 | |
commit | 7a0e3baf1682ed90d958d93a7a34492b92f0f213 (patch) | |
tree | 5980bf52721db83b558a0af39dc99f3e243ac177 /meta-agl-drm-lease/recipes-graphics/weston/weston/0004-launcher-direct-handle-seat0-without-VTs.patch | |
parent | e88a37a280e4cb786033279312c2602999d7c28e (diff) |
drm-lease: Update support for weston 10.0
Rebase drm-lease patches and remove changes that have already
been applied upstream.
BUG-AGL: SPEC-3815
Change-Id: Id524d221f91d0bdbac44c148e2983fab900070eb
Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
Diffstat (limited to 'meta-agl-drm-lease/recipes-graphics/weston/weston/0004-launcher-direct-handle-seat0-without-VTs.patch')
-rw-r--r-- | meta-agl-drm-lease/recipes-graphics/weston/weston/0004-launcher-direct-handle-seat0-without-VTs.patch | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/meta-agl-drm-lease/recipes-graphics/weston/weston/0004-launcher-direct-handle-seat0-without-VTs.patch b/meta-agl-drm-lease/recipes-graphics/weston/weston/0004-launcher-direct-handle-seat0-without-VTs.patch deleted file mode 100644 index 6d49112c..00000000 --- a/meta-agl-drm-lease/recipes-graphics/weston/weston/0004-launcher-direct-handle-seat0-without-VTs.patch +++ /dev/null @@ -1,43 +0,0 @@ -From a3c1df8dd097b72de09a6cb851ae797c0cb055b6 Mon Sep 17 00:00:00 2001 -From: nerdopolis <bluescreen_avenger@verizon.net> -Date: Wed, 20 Jan 2021 22:00:18 -0500 -Subject: [PATCH] launcher-direct: handle seat0 without VTs - -This allows launcher-direct to run when seat0 has no TTYs -This checks for a proper /dev/tty0 device as /dev/tty0 -does not get created by kernels compiled with CONFIG_VT=n - -(cherry picked from commit 72db3ac694c0f84f3c193df42e81be8329e52b61) -Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp> ---- - libweston/launcher-direct.c | 7 ++++++- - 1 file changed, 6 insertions(+), 1 deletion(-) - -diff --git a/libweston/launcher-direct.c b/libweston/launcher-direct.c -index 382ca49..646a91d 100644 ---- a/libweston/launcher-direct.c -+++ b/libweston/launcher-direct.c -@@ -290,6 +290,7 @@ launcher_direct_connect(struct weston_launcher **out, struct weston_compositor * - int tty, const char *seat_id, bool sync_drm) - { - struct launcher_direct *launcher; -+ struct stat buf; - - if (geteuid() != 0) - return -EINVAL; -@@ -301,7 +302,11 @@ launcher_direct_connect(struct weston_launcher **out, struct weston_compositor * - launcher->base.iface = &launcher_direct_iface; - launcher->compositor = compositor; - -- if (strcmp("seat0", seat_id) == 0) { -+ /* Checking the existance of /dev/tty0 and verifying it's a TTY -+ * device, as kernels compiled with CONFIG_VT=0 do not create these -+ * devices. */ -+ if (stat("/dev/tty0", &buf) == 0 && -+ strcmp("seat0", seat_id) == 0 && major(buf.st_rdev) == TTY_MAJOR) { - if (setup_tty(launcher, tty) == -1) { - free(launcher); - return -1; --- -2.25.1 - |