From 948b50c0e85fa7dc8b68ec223d6da29c24f635de Mon Sep 17 00:00:00 2001 From: David-John Willis Date: Wed, 4 Apr 2012 10:05:47 +0100 Subject: xserver-xf86-config: Add initial xorg config for the RaspberryPi. --- .../xserver-xf86-config/raspberrypi/xorg.conf | 6 ++++ .../raspberrypi/xorg.conf.d/10-evdev.conf | 40 ++++++++++++++++++++++ .../xorg-xserver/xserver-xf86-config_0.1.bbappend | 17 +++++++++ 3 files changed, 63 insertions(+) create mode 100644 recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi/xorg.conf create mode 100644 recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi/xorg.conf.d/10-evdev.conf create mode 100644 recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend diff --git a/recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi/xorg.conf b/recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi/xorg.conf new file mode 100644 index 0000000..6fd5298 --- /dev/null +++ b/recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi/xorg.conf @@ -0,0 +1,6 @@ +# Initial xorg.conf for the RaspberryPi +# Most things are setup automatically by magic pixies in the system. +# +# It is suggested this file is not used any more and configuration +# snippets are placed in xorg.conf.d instead. +# diff --git a/recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi/xorg.conf.d/10-evdev.conf b/recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi/xorg.conf.d/10-evdev.conf new file mode 100644 index 0000000..cc83ab2 --- /dev/null +++ b/recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi/xorg.conf.d/10-evdev.conf @@ -0,0 +1,40 @@ +# +# Catch-all evdev loader for udev-based systems +# We don't simply match on any device since that also adds accelerometers +# and other devices that we don't really want to use. The list below +# matches everything but joysticks. + +Section "InputClass" + Identifier "evdev pointer catchall" + MatchIsPointer "on" + MatchDevicePath "/dev/input/event*" + Driver "evdev" +EndSection + +Section "InputClass" + Identifier "evdev keyboard catchall" + MatchIsKeyboard "on" + MatchDevicePath "/dev/input/event*" + Driver "evdev" +EndSection + +Section "InputClass" + Identifier "evdev touchpad catchall" + MatchIsTouchpad "on" + MatchDevicePath "/dev/input/event*" + Driver "evdev" +EndSection + +Section "InputClass" + Identifier "evdev tablet catchall" + MatchIsTablet "on" + MatchDevicePath "/dev/input/event*" + Driver "evdev" +EndSection + +Section "InputClass" + Identifier "evdev touchscreen catchall" + MatchIsTouchscreen "on" + MatchDevicePath "/dev/input/event*" + Driver "evdev" +EndSection diff --git a/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend b/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend new file mode 100644 index 0000000..04204dc --- /dev/null +++ b/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend @@ -0,0 +1,17 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" +# Don't forget to bump PRINC if you update the extra files. +PRINC = "3" + +THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" +FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}"], d)}:" + +SRC_URI_append = " file://xorg.conf.d/*" + +CONFFILES_${PN} += "${sysconfdir}/X11/xorg.conf.d/*" + +do_install_append () { + install -d ${D}/${sysconfdir}/X11/xorg.conf.d/ + install -m 0644 ${WORKDIR}/xorg.conf.d/* ${D}/${sysconfdir}/X11/xorg.conf.d/ +} + +FILES_${PN} += "${sysconfdir}/X11/xorg.conf.d" \ No newline at end of file -- cgit v1.2.3-54-g00ecf