Add the ability to override default touch input device hard-coded into LVGL.
The current default in the code is "/dev/input/event10" for whatever reason,
let user override this. Pick "/dev/input/touchscreen" as the OE default, as
that is more likely to be present on embedded hardware.

Signed-off-by: Marek Vasut <[email protected]>
---
Cc: Fabio Estevam <[email protected]>
Cc: Khem Raj <[email protected]>
Cc: Martin Jansa <[email protected]>
---
 meta-oe/recipes-graphics/lvgl/lv-drivers.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-oe/recipes-graphics/lvgl/lv-drivers.inc 
b/meta-oe/recipes-graphics/lvgl/lv-drivers.inc
index 284d8421b..dcf1ad14b 100644
--- a/meta-oe/recipes-graphics/lvgl/lv-drivers.inc
+++ b/meta-oe/recipes-graphics/lvgl/lv-drivers.inc
@@ -7,6 +7,7 @@ LVGL_CONFIG_USE_DRM = "${@bb.utils.contains('PACKAGECONFIG', 
'drm', '1', '0', d)
 LVGL_CONFIG_DRM_CARD ?= "/dev/dri/card0"
 
 LVGL_CONFIG_USE_EVDEV = "${@bb.utils.contains_any('PACKAGECONFIG', 'drm 
fbdev', '1', '0', d)}"
+LVGL_CONFIG_EVDEV_INPUT ?= "/dev/input/touchscreen"
 
 LVGL_CONFIG_USE_FBDEV = "${@bb.utils.contains('PACKAGECONFIG', 'fbdev', '1', 
'0', d)}"
 
@@ -29,6 +30,7 @@ do_configure:append() {
         -e "s|\(^#  define DRM_CARD \).*|#  define DRM_CARD 
\"${LVGL_CONFIG_DRM_CARD}\"|g" \
        \
         -e "s|\(^#  define USE_EVDEV \).*|#  define USE_EVDEV 
${LVGL_CONFIG_USE_EVDEV}|g" \
+        -e "s|\(^#  define EVDEV_NAME \).*|#  define EVDEV_NAME 
\"${LVGL_CONFIG_EVDEV_INPUT}\"|g" \
         \
         -e "s|\(^#  define USE_FBDEV \).*|#  define USE_FBDEV 
${LVGL_CONFIG_USE_FBDEV}|g" \
         \
-- 
2.40.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#103563): 
https://lists.openembedded.org/g/openembedded-devel/message/103563
Mute This Topic: https://lists.openembedded.org/mt/99769137/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to