summaryrefslogtreecommitdiffstats
path: root/scripts/lib/bsp/substrate/target/arch/qemu/recipes-graphics
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/bsp/substrate/target/arch/qemu/recipes-graphics')
-rw-r--r--scripts/lib/bsp/substrate/target/arch/qemu/recipes-graphics/xorg-xserver/xserver-xf86-config/machine.noinstall1
-rw-r--r--scripts/lib/bsp/substrate/target/arch/qemu/recipes-graphics/xorg-xserver/xserver-xf86-config/machine/xorg.conf77
-rw-r--r--scripts/lib/bsp/substrate/target/arch/qemu/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend1
3 files changed, 79 insertions, 0 deletions
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-graphics/xorg-xserver/xserver-xf86-config/machine.noinstall b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-graphics/xorg-xserver/xserver-xf86-config/machine.noinstall
new file mode 100644
index 0000000000..b442d02d57
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-graphics/xorg-xserver/xserver-xf86-config/machine.noinstall
@@ -0,0 +1 @@
# yocto-bsp-dirname {{=machine}}
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-graphics/xorg-xserver/xserver-xf86-config/machine/xorg.conf b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-graphics/xorg-xserver/xserver-xf86-config/machine/xorg.conf
new file mode 100644
index 0000000000..13519804bc
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-graphics/xorg-xserver/xserver-xf86-config/machine/xorg.conf
@@ -0,0 +1,77 @@
1
2Section "Files"
3EndSection
4
5Section "InputDevice"
6 Identifier "Generic Keyboard"
7 Driver "evdev"
8 Option "CoreKeyboard"
9 Option "Device" "/dev/input/by-path/platform-i8042-serio-0-event-kbd"
10 Option "XkbRules" "xorg"
11 Option "XkbModel" "evdev"
12 Option "XkbLayout" "us"
13EndSection
14
15Section "InputDevice"
16 Identifier "Configured Mouse"
17{{ if qemuarch == "arm" or qemuarch == "powerpc" or qemuarch == "mips": }}
18 Driver "mouse"
19{{ if qemuarch == "i386" or qemuarch == "x86_64": }}
20 Driver "vmmouse"
21
22 Option "CorePointer"
23 Option "Device" "/dev/input/mice"
24 Option "Protocol" "ImPS/2"
25 Option "ZAxisMapping" "4 5"
26 Option "Emulate3Buttons" "true"
27EndSection
28
29Section "InputDevice"
30 Identifier "Qemu Tablet"
31 Driver "evdev"
32 Option "CorePointer"
33 Option "Device" "/dev/input/touchscreen0"
34 Option "USB" "on"
35EndSection
36
37Section "Device"
38 Identifier "Graphics Controller"
39{{ if qemuarch == "arm" or qemuarch == "powerpc" or qemuarch == "mips": }}
40 Driver "fbdev"
41{{ if qemuarch == "i386" or qemuarch == "x86_64": }}
42 Driver "vmware"
43
44EndSection
45
46Section "Monitor"
47 Identifier "Generic Monitor"
48 Option "DPMS"
49 # 1024x600 59.85 Hz (CVT) hsync: 37.35 kHz; pclk: 49.00 MHz
50 Modeline "1024x600_60.00" 49.00 1024 1072 1168 1312 600 603 613 624 -hsync +vsync
51 # 640x480 @ 60Hz (Industry standard) hsync: 31.5kHz
52 ModeLine "640x480" 25.2 640 656 752 800 480 490 492 525 -hsync -vsync
53 # 640x480 @ 72Hz (VESA) hsync: 37.9kHz
54 ModeLine "640x480" 31.5 640 664 704 832 480 489 491 520 -hsync -vsync
55 # 640x480 @ 75Hz (VESA) hsync: 37.5kHz
56 ModeLine "640x480" 31.5 640 656 720 840 480 481 484 500 -hsync -vsync
57 # 640x480 @ 85Hz (VESA) hsync: 43.3kHz
58 ModeLine "640x480" 36.0 640 696 752 832 480 481 484 509 -hsync -vsync
59EndSection
60
61Section "Screen"
62 Identifier "Default Screen"
63 Device "Graphics Controller"
64 Monitor "Generic Monitor"
65 SubSection "Display"
66 Modes "640x480"
67 EndSubSection
68EndSection
69
70Section "ServerLayout"
71 Identifier "Default Layout"
72 Screen "Default Screen"
73 InputDevice "Generic Keyboard"
74 # InputDevice "Configured Mouse"
75 InputDevice "QEMU Tablet"
76 Option "AllowEmptyInput" "no"
77EndSection
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend
new file mode 100644
index 0000000000..72d991c7e5
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend
@@ -0,0 +1 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"