mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
add package 'xf86-video-amdgpu'
This commit is contained in:
parent
88d6256aa4
commit
d9e20305cb
@ -64,7 +64,7 @@ get_graphicdrivers() {
|
||||
|
||||
if [ "$drv" = "radeonsi" ]; then
|
||||
GALLIUM_DRIVERS="$GALLIUM_DRIVERS,radeonsi"
|
||||
XORG_DRIVERS="$XORG_DRIVERS ati"
|
||||
XORG_DRIVERS="$XORG_DRIVERS ati amdgpu"
|
||||
LLVM_SUPPORT="yes"
|
||||
COMPOSITE_SUPPORT="yes"
|
||||
VDPAU_SUPPORT="yes"
|
||||
|
@ -34,7 +34,7 @@ PKG_AUTORECONF="yes"
|
||||
|
||||
get_graphicdrivers
|
||||
|
||||
DRM_CONFIG="--disable-libkms --disable-intel --disable-radeon"
|
||||
DRM_CONFIG="--disable-libkms --disable-intel --disable-radeon --disable-amdgpu"
|
||||
DRM_CONFIG="$DRM_CONFIG --disable-nouveau --disable-vmwgfx"
|
||||
|
||||
for drv in $GRAPHIC_DRIVERS; do
|
||||
@ -44,7 +44,8 @@ for drv in $GRAPHIC_DRIVERS; do
|
||||
|
||||
[ "$drv" = "r200" -o "$drv" = "r300" -o "$drv" = "r600" -o "$drv" = "radeonsi" ] && \
|
||||
DRM_CONFIG=`echo $DRM_CONFIG | sed -e 's/disable-libkms/enable-libkms/'` && \
|
||||
DRM_CONFIG=`echo $DRM_CONFIG | sed -e 's/disable-radeon/enable-radeon/'`
|
||||
DRM_CONFIG=`echo $DRM_CONFIG | sed -e 's/disable-radeon/enable-radeon/'` && \
|
||||
DRM_CONFIG=`echo $DRM_CONFIG | sed -e 's/disable-amdgpu/enable-amdgpu/'`
|
||||
done
|
||||
|
||||
PKG_CONFIGURE_OPTS_TARGET="--disable-udev \
|
||||
|
41
packages/x11/driver/xf86-video-amdgpu/package.mk
Normal file
41
packages/x11/driver/xf86-video-amdgpu/package.mk
Normal file
@ -0,0 +1,41 @@
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# OpenELEC 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 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# OpenELEC 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. If not, see <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="xf86-video-amdgpu"
|
||||
PKG_VERSION="3b0a3c8"
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="x86_64"
|
||||
PKG_LICENSE="OSS"
|
||||
PKG_SITE="http://www.x.org/"
|
||||
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
|
||||
PKG_DEPENDS_TARGET="toolchain xorg-server"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="x11/driver"
|
||||
PKG_SHORTDESC="xf86-video-amdgpu - AMD Radeon video driver for the Xorg X server"
|
||||
PKG_LONGDESC="AMD Xorg video driver"
|
||||
|
||||
PKG_IS_ADDON="no"
|
||||
PKG_AUTORECONF="yes"
|
||||
|
||||
PKG_CONFIGURE_OPTS_TARGET="--enable-udev \
|
||||
--enable-glamor \
|
||||
--with-xorg-module-dir=$XORG_PATH_MODULES"
|
||||
|
||||
post_makeinstall_target() {
|
||||
rm -r $INSTALL/usr/share
|
||||
}
|
@ -31,6 +31,7 @@ GOTO="end_video"
|
||||
# check for drivers using the pci substem
|
||||
LABEL="subsystem_pci"
|
||||
DRIVER=="i915", ENV{xorg_driver}="i915", TAG+="systemd", ENV{SYSTEMD_WANTS}+="xorg-configure@i915.service"
|
||||
DRIVER=="amdgpu", ENV{xorg_driver}="amdgpu", TAG+="systemd", ENV{SYSTEMD_WANTS}+="xorg-configure@amdgpu.service"
|
||||
DRIVER=="radeon", ENV{xorg_driver}="radeon", TAG+="systemd", ENV{SYSTEMD_WANTS}+="xorg-configure@radeon.service"
|
||||
GOTO="end_video"
|
||||
|
||||
|
43
tools/mkpkg/mkpkg_xf86-video-amdgpu
Executable file
43
tools/mkpkg/mkpkg_xf86-video-amdgpu
Executable file
@ -0,0 +1,43 @@
|
||||
#!/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
|
||||
################################################################################
|
||||
|
||||
echo "getting sources..."
|
||||
if [ ! -d xf86-video-amdgpu.git ]; then
|
||||
git clone git://anongit.freedesktop.org/xorg/driver/xf86-video-amdgpu xf86-video-amdgpu.git
|
||||
fi
|
||||
|
||||
cd xf86-video-amdgpu.git
|
||||
git pull
|
||||
GIT_REV=`git log -n1 --format=%h`
|
||||
cd ..
|
||||
|
||||
echo "copying sources..."
|
||||
rm -rf xf86-video-amdgpu-$GIT_REV
|
||||
cp -R xf86-video-amdgpu.git xf86-video-amdgpu-$GIT_REV
|
||||
|
||||
echo "cleaning sources..."
|
||||
rm -rf xf86-video-amdgpu-$GIT_REV/.git
|
||||
|
||||
echo "packing sources..."
|
||||
tar cvJf xf86-video-amdgpu-$GIT_REV.tar.xz xf86-video-amdgpu-$GIT_REV
|
||||
|
||||
echo "remove temporary sourcedir..."
|
||||
rm -rf xf86-video-amdgpu-$GIT_REV
|
Loading…
x
Reference in New Issue
Block a user