Add a virtual touchscreen driver as quick fix for Weston.

Weston segfaults if it can't find input devices despite it being
configured to load without it (require-input=false)
This commit is contained in:
j1nx 2021-01-03 20:57:48 +01:00
parent 71675566b6
commit b7f5b9ebee
6 changed files with 31 additions and 0 deletions

View File

@ -86,6 +86,7 @@ endmenu
source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/snapcast/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/snapcast/Config.in"
source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/spotifyd/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/spotifyd/Config.in"
source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/userland-tools/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/userland-tools/Config.in"
source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/virtual-touch/Config.in"
source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/wifi-connect/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/wifi-connect/Config.in"
endmenu endmenu
menu "Additional external python modules" menu "Additional external python modules"

View File

@ -515,6 +515,7 @@ BR2_PACKAGE_SNAPCAST=y
BR2_PACKAGE_SNAPCAST_SERVER=y BR2_PACKAGE_SNAPCAST_SERVER=y
BR2_PACKAGE_SPOTIFYD=y BR2_PACKAGE_SPOTIFYD=y
BR2_PACKAGE_USERLAND_TOOLS=y BR2_PACKAGE_USERLAND_TOOLS=y
BR2_PACKAGE_VIRTUAL_TOUCH=y
BR2_PACKAGE_WIFI_CONNECT=y BR2_PACKAGE_WIFI_CONNECT=y
BR2_PACKAGE_PYTHON_ADAPT_PARSER=y BR2_PACKAGE_PYTHON_ADAPT_PARSER=y
BR2_PACKAGE_PYTHON_COVERALLS=y BR2_PACKAGE_PYTHON_COVERALLS=y

View File

@ -0,0 +1,9 @@
config BR2_PACKAGE_VIRTUAL_TOUCH
bool "virtual-touch"
help
Simple virtual input device for
testing things in Linux. Creates
a character device and an input
device.
https://github.com/vi/virtual_touchscreen

View File

@ -0,0 +1 @@
virtual_touchscreen

View File

@ -0,0 +1,2 @@
# Locally computed
sha256 9b068d82aa40ab101ceb6f0d5fe06c60db96debdf344211200edad777eb714c0 virtual-touch-913a36c83fc1ebf4396fec19a94b2092ebee6d4c.tar.gz

View File

@ -0,0 +1,17 @@
################################################################################
#
# virtual-touch
#
################################################################################
VIRTUAL_TOUCH_VERSION = 913a36c83fc1ebf4396fec19a94b2092ebee6d4c
VIRTUAL_TOUCH_SITE = $(call github,vi,virtual_touchscreen,$(VIRTUAL_TOUCH_VERSION))
$(eval $(kernel-module))
define VIRTUAL_TOUCH_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0644 $(BR2_EXTERNAL_OPENVOICEOS_PATH)/package/virtual-touch/virtual-touch.conf \
$(TARGET_DIR)/etc/modules-load.d/virtual-touch.conf
endef
$(eval $(generic-package))