mirror of
https://github.com/libretro/Lakka.git
synced 2025-02-25 18:30:56 +00:00
new package: add package 'xf86-video-dove'
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
5716aff4a1
commit
79da0a9f90
@ -38,6 +38,10 @@ get_graphicdrivers() {
|
||||
fi
|
||||
|
||||
for drv in $GRAPHIC_DRIVERS; do
|
||||
if [ "$drv" = "dove" ]; then
|
||||
XORG_DRIVERS="$XORG_DRIVERS dove"
|
||||
fi
|
||||
|
||||
if [ "$drv" = "fglrx" ]; then
|
||||
XORG_DRIVERS="$XORG_DRIVERS fglrx"
|
||||
COMPOSITE_SUPPORT="yes"
|
||||
|
60
packages/x11/driver/xf86-video-dove/build
Executable file
60
packages/x11/driver/xf86-video-dove/build
Executable file
@ -0,0 +1,60 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
. config/options $1
|
||||
|
||||
xorg_drv_configure_prepend
|
||||
|
||||
MARVEL_CFLAGS="$MARVEL_CFLAGS -DMRVL_SUPPORT_RANDR=1"
|
||||
MARVEL_CFLAGS="$MARVEL_CFLAGS -DMRVL_SUPPORT_EXA=1"
|
||||
MARVEL_CFLAGS="$MARVEL_CFLAGS -DDUMP_RAW_VIDEO=1"
|
||||
MARVEL_CFLAGS="$MARVEL_CFLAGS -DMRVL_USE_OFFSCREEN_HEAP=0"
|
||||
MARVEL_CFLAGS="$MARVEL_CFLAGS -DMRVL_EXA_MODE=2"
|
||||
MARVEL_CFLAGS="$MARVEL_CFLAGS -DMRVL_EXA_ENABLE_UP_DOWNLOAD=0"
|
||||
MARVEL_CFLAGS="$MARVEL_CFLAGS -DMRVL_EXA_FORCE_HW_LOAD=0"
|
||||
MARVEL_CFLAGS="$MARVEL_CFLAGS -DMRVL_EXA_ALLOC_PIXMAP_FROM_SYSTEM=0"
|
||||
MARVEL_CFLAGS="$MARVEL_CFLAGS -DMRVL_EXA_PERF_PROFILING=0"
|
||||
MARVEL_CFLAGS="$MARVEL_CFLAGS -DMRVL_EXA_TRACE_FALLBACK=1"
|
||||
MARVEL_CFLAGS="$MARVEL_CFLAGS -DMRVL_EXA_XBGR_SUPPORT=1"
|
||||
MARVEL_CFLAGS="$MARVEL_CFLAGS -DMRVL_XV_SUPPORT_RGB_FORMAT=1"
|
||||
MARVEL_CFLAGS="$MARVEL_CFLAGS -DMRVL_XV_TEX_VIDEO=1"
|
||||
MARVEL_CFLAGS="$MARVEL_CFLAGS -DMRVL_XV_OVERLAY_VIDEO=2"
|
||||
MARVEL_CFLAGS="$MARVEL_CFLAGS -DMRVL_XV_DEFERRED_STALL_GPU=1"
|
||||
MARVEL_CFLAGS="$MARVEL_CFLAGS -DMRVL_XV_USE_FAKE_FENCE_STALL=1"
|
||||
MARVEL_CFLAGS="$MARVEL_CFLAGS -DMRVL_RANDR_EDID_MODES=1"
|
||||
MARVEL_CFLAGS="$MARVEL_CFLAGS -DMRVL_CRTC_SUPPORT_ROTATION=1"
|
||||
MARVEL_CFLAGS="$MARVEL_CFLAGS -DMRVL_PLATFORM_INFO=1"
|
||||
MARVEL_CFLAGS="$MARVEL_CFLAGS -DMRVL_XV_MIXED_VIDEO=1"
|
||||
MARVEL_CFLAGS="$MARVEL_CFLAGS -DMRVL_SOURCE_VERSION='\"0.1.0\"'"
|
||||
|
||||
CFLAGS="$CFLAGS $MARVEL_CFLAGS -I$SYSROOT_PREFIX/usr/include/HAL"
|
||||
|
||||
cd $PKG_BUILD
|
||||
./configure --host=$TARGET_NAME \
|
||||
--build=$HOST_NAME \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--enable-shared \
|
||||
--disable-static \
|
||||
--with-xorg-module-dir=$XORG_PATH_MODULES
|
||||
|
||||
make
|
53
packages/x11/driver/xf86-video-dove/config/xorg-dove.conf
Normal file
53
packages/x11/driver/xf86-video-dove/config/xorg-dove.conf
Normal file
@ -0,0 +1,53 @@
|
||||
Section "Monitor"
|
||||
Identifier "DVI"
|
||||
Option "Position" "0 0"
|
||||
Option "Enable" "true"
|
||||
Option "PreferredMode" "1920x1080"
|
||||
# Option "PreferredMode" "1280x720"
|
||||
# Option "Rotate" "left"
|
||||
# Option "NoDDCValue" "true"
|
||||
# Option "PreferredMode" "800x600"
|
||||
EndSection
|
||||
Section "Monitor"
|
||||
Identifier "VGA"
|
||||
Option "Position" "0 0"
|
||||
Option "Enable" "true"
|
||||
Option "PreferredMode" "1920x1080"
|
||||
# Option "PreferredMode" "1280x720"
|
||||
# Option "PreferredMode" "800x600"
|
||||
EndSection
|
||||
|
||||
Section "Device"
|
||||
Identifier "Driver0"
|
||||
Screen 0
|
||||
Driver "dovefb"
|
||||
Option "debug" "false"
|
||||
# Option "ShadowFB" "TRUE"
|
||||
# Option "UseGPU" "FALSE"
|
||||
Option "ExaAccel" "FALSE"
|
||||
Option "Solid" "TRUE"
|
||||
Option "Copy" "TRUE"
|
||||
Option "Composite" "FALSE"
|
||||
Option "SWSolid" "FALSE"
|
||||
Option "SWCopy" "FALSE"
|
||||
Option "Commit" "FALSE"
|
||||
Option "XvAccel" "TRUE"
|
||||
Option "HWCursor" "false"
|
||||
Option "EncFunc" "7"
|
||||
Option "UseDriverBuiltInMode" "TRUE"
|
||||
Option "EnableDualDisplay" "true"
|
||||
Option "Monitor-VGA" "VGA"
|
||||
Option "Monitor-lvds" "DVI"
|
||||
EndSection
|
||||
|
||||
Section "Screen"
|
||||
Device "Driver0"
|
||||
Identifier "Primary Screen"
|
||||
DefaultDepth 32
|
||||
DefaultFbBpp 32
|
||||
SubSection "Display"
|
||||
Viewport 0 0
|
||||
Virtual 2048 2048
|
||||
EndSubSection
|
||||
EndSection
|
||||
|
29
packages/x11/driver/xf86-video-dove/install
Executable file
29
packages/x11/driver/xf86-video-dove/install
Executable file
@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
. config/options $1
|
||||
|
||||
mkdir -p $INSTALL/$XORG_PATH_MODULES/drivers
|
||||
cp -P $PKG_BUILD/src/.libs/dovefb_drv.so $INSTALL/$XORG_PATH_MODULES/drivers
|
||||
|
||||
mkdir -p $INSTALL/etc/X11
|
||||
cp $PKG_DIR/config/*.conf $INSTALL/etc/X11
|
36
packages/x11/driver/xf86-video-dove/meta
Normal file
36
packages/x11/driver/xf86-video-dove/meta
Normal file
@ -0,0 +1,36 @@
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="xf86-video-dove"
|
||||
PKG_VERSION="0.3.4"
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="arm"
|
||||
PKG_LICENSE="OSS"
|
||||
PKG_SITE="http://www.solid-run.com"
|
||||
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
|
||||
PKG_DEPENDS="marvell-libgfx"
|
||||
PKG_BUILD_DEPENDS="toolchain randrproto renderproto videoproto xproto fontsproto marvell-libgfx xorg-server"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="x11/driver"
|
||||
PKG_SHORTDESC="xf86-video-dove: The Xorg driver for Marvell Dove video chips"
|
||||
PKG_LONGDESC="The Xorg driver for Marvell Dove video chips."
|
||||
PKG_IS_ADDON="no"
|
||||
|
||||
PKG_AUTORECONF="yes"
|
@ -27,6 +27,7 @@ GOTO="end_video"
|
||||
|
||||
# check for drivers dont use the pci substem
|
||||
LABEL="subsystem_drivers"
|
||||
KERNEL=="dovefb", ENV{xorg_driver}="dove", GOTO="start_xorg"
|
||||
KERNEL=="fglrx_pci", ENV{xorg_driver}="fglrx", GOTO="start_xorg"
|
||||
KERNEL=="fglrx_legacy_pci", ENV{xorg_driver}="fglrx-legacy", GOTO="start_xorg"
|
||||
KERNEL=="nvidia", ENV{xorg_driver}="nvidia", GOTO="start_xorg"
|
||||
|
Loading…
x
Reference in New Issue
Block a user