Correctly install mali and fbturbo driver:

- add correct xorg config
- For mali-sunxi driver to work it also need library files from sunxi-mali-dev
  package. Adding sunxi-mali-dev to XSERVER force the installation of
  the -dev
This commit is contained in:
Raoul Hecky
2013-10-29 22:38:45 +01:00
parent 2352ee9620
commit 51fe9392f2
7 changed files with 48 additions and 40 deletions

View File

@ -0,0 +1,7 @@
Section "Device"
Identifier "Allwinner A10/A13 FBDEV"
Driver "fbturbo"
Option "fbdev" "/dev/fb0"
Option "SwapbuffersWait" "false"
EndSection

View File

@ -2,16 +2,24 @@ require recipes-graphics/xorg-driver/xorg-driver-video.inc
DESCRIPTION = "X.Org X server -- A10/A13 display driver"
PR = "1"
PR = "2"
LICENSE = "MIT-X"
LIC_FILES_CHKSUM = "file://COPYING;md5=f91dc3ee5ce59eb4b528e67e98a31266"
SRC_URI = "git://github.com/ssvb/xf86-video-fbturbo.git;protocol=http;branch=master"
SRC_URI = "git://github.com/ssvb/xf86-video-fbturbo.git;protocol=http;branch=master \
file://20-fbturbo.conf"
SRCREV_pn-${PN} = "fed3148bad26186dd04707cdac67809a666f1742"
S = "${WORKDIR}/git"
CFLAGS += " -I${STAGING_INCDIR}/xorg "
DEPENDS += "sunxi-mali"
DEPENDS += "sunxi-mali"
FILES_${PN} += "${datadir}/X11/xorg.conf.d/20-fbturbo.conf"
do_install_append() {
install -d ${D}${datadir}/X11/xorg.conf.d
install -m 0644 ${WORKDIR}/20-fbturbo.conf ${D}${datadir}/X11/xorg.conf.d
}

View File

@ -1,22 +0,0 @@
Section "Device"
Identifier "Generic Fbdev Driver"
Driver "fbdev"
EndSection
Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
EndSection
Section "Screen"
Identifier "Default Screen"
Device "Generic Fbdev Driver"
Monitor "Generic Monitor"
DefaultDepth 24
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
EndSection