diff options
author | David-John Willis <John.Willis@Distant-earth.com> | 2012-04-04 10:05:47 +0100 |
---|---|---|
committer | David-John Willis <John.Willis@Distant-earth.com> | 2012-04-04 10:05:47 +0100 |
commit | 948b50c0e85fa7dc8b68ec223d6da29c24f635de (patch) | |
tree | b14130fa33ac3ef047ab56aa1c0ab59716c4ecda | |
parent | bfa2cb6d57a5b8f1a178ab3723321d9aafea0a8e (diff) | |
download | meta-raspberrypi-948b50c0e85fa7dc8b68ec223d6da29c24f635de.tar.gz |
xserver-xf86-config: Add initial xorg config for the RaspberryPi.
3 files changed, 63 insertions, 0 deletions
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 @@ | |||
1 | # Initial xorg.conf for the RaspberryPi | ||
2 | # Most things are setup automatically by magic pixies in the system. | ||
3 | # | ||
4 | # It is suggested this file is not used any more and configuration | ||
5 | # snippets are placed in xorg.conf.d instead. | ||
6 | # | ||
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 @@ | |||
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 | |||
7 | Section "InputClass" | ||
8 | Identifier "evdev pointer catchall" | ||
9 | MatchIsPointer "on" | ||
10 | MatchDevicePath "/dev/input/event*" | ||
11 | Driver "evdev" | ||
12 | EndSection | ||
13 | |||
14 | Section "InputClass" | ||
15 | Identifier "evdev keyboard catchall" | ||
16 | MatchIsKeyboard "on" | ||
17 | MatchDevicePath "/dev/input/event*" | ||
18 | Driver "evdev" | ||
19 | EndSection | ||
20 | |||
21 | Section "InputClass" | ||
22 | Identifier "evdev touchpad catchall" | ||
23 | MatchIsTouchpad "on" | ||
24 | MatchDevicePath "/dev/input/event*" | ||
25 | Driver "evdev" | ||
26 | EndSection | ||
27 | |||
28 | Section "InputClass" | ||
29 | Identifier "evdev tablet catchall" | ||
30 | MatchIsTablet "on" | ||
31 | MatchDevicePath "/dev/input/event*" | ||
32 | Driver "evdev" | ||
33 | EndSection | ||
34 | |||
35 | Section "InputClass" | ||
36 | Identifier "evdev touchscreen catchall" | ||
37 | MatchIsTouchscreen "on" | ||
38 | MatchDevicePath "/dev/input/event*" | ||
39 | Driver "evdev" | ||
40 | 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 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
2 | # Don't forget to bump PRINC if you update the extra files. | ||
3 | PRINC = "3" | ||
4 | |||
5 | THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" | ||
6 | FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}"], d)}:" | ||
7 | |||
8 | SRC_URI_append = " file://xorg.conf.d/*" | ||
9 | |||
10 | CONFFILES_${PN} += "${sysconfdir}/X11/xorg.conf.d/*" | ||
11 | |||
12 | do_install_append () { | ||
13 | install -d ${D}/${sysconfdir}/X11/xorg.conf.d/ | ||
14 | install -m 0644 ${WORKDIR}/xorg.conf.d/* ${D}/${sysconfdir}/X11/xorg.conf.d/ | ||
15 | } | ||
16 | |||
17 | FILES_${PN} += "${sysconfdir}/X11/xorg.conf.d" \ No newline at end of file | ||