summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/10-evdev.conf40
-rw-r--r--recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend22
2 files changed, 10 insertions, 52 deletions
diff --git a/recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/10-evdev.conf b/recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/10-evdev.conf
deleted file mode 100644
index cc83ab2..0000000
--- a/recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/10-evdev.conf
+++ /dev/null
@@ -1,40 +0,0 @@
1#
2# Catch-all evdev loader for udev-based systems
3# We don't simply match on any device since that also adds accelerometers
4# and other devices that we don't really want to use. The list below
5# matches everything but joysticks.
6
7Section "InputClass"
8 Identifier "evdev pointer catchall"
9 MatchIsPointer "on"
10 MatchDevicePath "/dev/input/event*"
11 Driver "evdev"
12EndSection
13
14Section "InputClass"
15 Identifier "evdev keyboard catchall"
16 MatchIsKeyboard "on"
17 MatchDevicePath "/dev/input/event*"
18 Driver "evdev"
19EndSection
20
21Section "InputClass"
22 Identifier "evdev touchpad catchall"
23 MatchIsTouchpad "on"
24 MatchDevicePath "/dev/input/event*"
25 Driver "evdev"
26EndSection
27
28Section "InputClass"
29 Identifier "evdev tablet catchall"
30 MatchIsTablet "on"
31 MatchDevicePath "/dev/input/event*"
32 Driver "evdev"
33EndSection
34
35Section "InputClass"
36 Identifier "evdev touchscreen catchall"
37 MatchIsTouchscreen "on"
38 MatchDevicePath "/dev/input/event*"
39 Driver "evdev"
40EndSection
diff --git a/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend b/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend
index 062de2d..b361eef 100644
--- a/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend
+++ b/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend
@@ -1,19 +1,17 @@
1FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" 1FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
2 2
3SRC_URI_append_rpi = " file://xorg.conf.d/10-evdev.conf \ 3SRC_URI_append_rpi = " \
4 file://xorg.conf.d/98-pitft.conf \ 4 file://xorg.conf.d/98-pitft.conf \
5 file://xorg.conf.d/99-calibration.conf \ 5 file://xorg.conf.d/99-calibration.conf \
6 " 6"
7 7
8do_install_append_rpi () { 8do_install_append_rpi () {
9 install -d ${D}/${sysconfdir}/X11/xorg.conf.d/ 9 PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}"
10 install -m 0644 ${WORKDIR}/xorg.conf.d/10-evdev.conf ${D}/${sysconfdir}/X11/xorg.conf.d/ 10 if [ "${PITFT}" = "1" ]; then
11 11 install -d ${D}/${sysconfdir}/X11/xorg.conf.d/
12 PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}" 12 install -m 0644 ${WORKDIR}/xorg.conf.d/98-pitft.conf ${D}/${sysconfdir}/X11/xorg.conf.d/
13 if [ "${PITFT}" = "1" ]; then 13 install -m 0644 ${WORKDIR}/xorg.conf.d/99-calibration.conf ${D}/${sysconfdir}/X11/xorg.conf.d/
14 install -m 0644 ${WORKDIR}/xorg.conf.d/98-pitft.conf ${D}/${sysconfdir}/X11/xorg.conf.d/ 14 fi
15 install -m 0644 ${WORKDIR}/xorg.conf.d/99-calibration.conf ${D}/${sysconfdir}/X11/xorg.conf.d/
16 fi
17} 15}
18 16
19FILES_${PN}_rpi += "${sysconfdir}/X11/xorg.conf ${sysconfdir}/X11/xorg.conf.d/*" 17FILES_${PN}_rpi += "${sysconfdir}/X11/xorg.conf ${sysconfdir}/X11/xorg.conf.d/*"