From 2af1e721236fa31ba7b415d7bf01a62761059c28 Mon Sep 17 00:00:00 2001 From: Gabriel Valcazar Date: Wed, 11 Mar 2026 11:12:48 +0100 Subject: [PATCH] lvgl: lv-conf.inc: enable touchscreen support for the wayland backend LVGL v9.3.0 added support for multi-touch gestures via the USE_GESTURE_RECOGNITION option, but in doing so, they made all touchscreen support depend on said symbol, at least for the wayland backend. Since the option is disabled by default, touchscreen support wasn't working in the wayland version of the demo. Enable gesture recognition/touchscreen support by default when using the wayland backend. This depends on LVGL's floating number support, so make sure this is reflected in the recipe as well. https://onedigi.atlassian.net/browse/DEL-9925 Signed-off-by: Gabriel Valcazar --- meta-digi-dey/recipes-graphics/lvgl/lv-conf.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta-digi-dey/recipes-graphics/lvgl/lv-conf.inc b/meta-digi-dey/recipes-graphics/lvgl/lv-conf.inc index d9de17a9e..c28814e6c 100644 --- a/meta-digi-dey/recipes-graphics/lvgl/lv-conf.inc +++ b/meta-digi-dey/recipes-graphics/lvgl/lv-conf.inc @@ -24,6 +24,8 @@ LVGL_CONFIG_USE_FBDEV = "${@bb.utils.contains('PACKAGECONFIG', 'fbdev', '1', '0' LVGL_CONFIG_USE_WAYLAND = "${@bb.utils.contains('PACKAGECONFIG', 'wayland', '1', '0', d)}" +LVGL_CONFIG_USE_GESTURE_RECOGNITION = "${@bb.utils.contains('PACKAGECONFIG', 'wayland', '1', '0', d)}" + LVGL_CONFIG_LV_MEM_CUSTOM ?= "0" LVGL_CONFIG_LV_MEM_SIZE ?= "(64 * 1024U)" LVGL_CONFIG_LV_COLOR_DEPTH ?= "32" @@ -46,7 +48,7 @@ LVGL_CONFIG_USE_THORVG_INTERNAL = "${@bb.utils.contains('PACKAGECONFIG', 'thorvg LVGL_CONFIG_USE_MATRIX = "${@bb.utils.contains('PACKAGECONFIG', 'thorvg', '1', '0', d)}" -LVGL_CONFIG_USE_FLOAT = "${@bb.utils.contains('PACKAGECONFIG', 'thorvg', '1', '0', d)}" +LVGL_CONFIG_USE_FLOAT = "${@bb.utils.contains('PACKAGECONFIG', 'thorvg', '1', '${LVGL_CONFIG_USE_GESTURE_RECOGNITION}', d)}" DEBUG_BUILD ??= "0" @@ -65,6 +67,7 @@ do_configure:append() { -e "s|^([[:space:]]*#define LV_USE_LINUX_FBDEV[[:space:]]).*|\1${LVGL_CONFIG_USE_FBDEV}|" \ \ -e "s|^([[:space:]]*#define LV_USE_WAYLAND[[:space:]]).*|\1${LVGL_CONFIG_USE_WAYLAND}|" \ + -e "s|^([[:space:]]*#define LV_USE_GESTURE_RECOGNITION[[:space:]]).*|\1${LVGL_CONFIG_USE_GESTURE_RECOGNITION}|" \ \ -e "s|^([[:space:]]*#define LV_COLOR_DEPTH[[:space:]]).*|\1${LVGL_CONFIG_LV_COLOR_DEPTH}|" \ -e "s|^([[:space:]]*#define LV_MEM_CUSTOM[[:space:]]).*|\1${LVGL_CONFIG_LV_MEM_CUSTOM}|" \