+libX11 \
@DISPLAY_SUPPORT
+
+ifneq ($(CONFIG_TARGET_olpc),)
+ XORG_CONFIG_FILE=xorg-olpc.conf
+else
+ XORG_CONFIG_FILE=xorg.conf
+endif
+
define Package/xorg-server/config
config XORG_BUILD_KDRIVE
bool "Build kdrive instead of xserver"
rm -rf $(1)/usr/share/X11 $(1)/usr/lib/X11/xserver
$(INSTALL_DIR) $(1)/var/log/
$(INSTALL_DIR) $(1)/etc/X11/
- $(CP) files/xorg.conf $(1)/etc/X11/
+ $(CP) files/$(XORG_CONFIG_FILE) $(1)/etc/X11/
endef
define Packages/xorg-server-config/install
--- /dev/null
+# xorg configuration
+
+Section "ServerLayout"
+ Identifier "Default Layout"
+ Screen 0 "Screen0" 0 0
+ InputDevice "Mouse0" "CorePointer"
+ InputDevice "Keyboard0" "CoreKeyboard"
+EndSection
+
+Section "Files"
+ FontPath "/usr/lib/X11/fonts/misc"
+EndSection
+
+Section "Module"
+ Load "dbe"
+ Load "extmod"
+ Load "fbdevhw"
+# Load "glx"
+ Load "record"
+ Load "freetype"
+ Load "type1"
+EndSection
+
+Section "InputDevice"
+ Identifier "Keyboard0"
+ Driver "keyboard"
+ Option "XkbModel" "pc105"
+ Option "XkbLayout" "us"
+EndSection
+
+Section "InputDevice"
+ Identifier "Mouse0"
+ Driver "mouse"
+ Option "Protocol" "PS/2"
+# Option "Protocol" "IMPS/2"
+ Option "Device" "/dev/psaux"
+# Option "Device" "/dev/input/mice"
+ Option "ZAxisMapping" "4 5"
+ Option "Emulate3Buttons" "yes"
+EndSection
+
+Section "Monitor"
+ Identifier "Monitor0"
+ VendorName "Monitor Vendor"
+ ModelName "OWRT"
+ Option "dpms"
+EndSection
+
+Section "Device"
+ Identifier "FBDev"
+ Driver "fbdev"
+ #Option "shadowfb" "off"
+ VideoRam 4096
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "FBDev"
+ Monitor "Monitor0"
+ DefaultDepth 16
+
+ SubSection "Display"
+ Depth 16
+ Modes "1200x900"
+ EndSubsection
+
+EndSection
+
+Section "DRI"
+ Group 0
+ Mode 0666
+EndSection
+