mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-31 01:42:56 +02:00
catalyst: add patch for linux>=3.8.
This commit is contained in:
parent
4f88fdef18
commit
4484202ba7
2 changed files with 15 additions and 1 deletions
13
srcpkgs/catalyst/files/kernel-3.8-fixes.patch
Normal file
13
srcpkgs/catalyst/files/kernel-3.8-fixes.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
--- common/lib/modules/fglrx/build_mod/kcl_acpi.c 2012-10-23 22:44:52.000000000 +0200
|
||||||
|
+++ common/lib/modules/fglrx/build_mod/kcl_acpi.c 2012-12-22 22:11:30.289750331 +0100
|
||||||
|
@@ -775,7 +775,9 @@
|
||||||
|
unsigned int ATI_API_CALL KCL_ACPI_GetHandles(kcl_match_info_t *pInfo)
|
||||||
|
{
|
||||||
|
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,12)
|
||||||
|
- #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,19)
|
||||||
|
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)
|
||||||
|
+ pInfo->video_handle = pInfo->pcidev->dev.acpi_node.handle;
|
||||||
|
+ #elif LINUX_VERSION_CODE > KERNEL_VERSION(2,6,19)
|
||||||
|
pInfo->video_handle = pInfo->pcidev->dev.archdata.acpi_handle;
|
||||||
|
#else
|
||||||
|
pInfo->video_handle = pInfo->pcidev->dev.firmware_data;
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'catalyst'
|
# Template file for 'catalyst'
|
||||||
pkgname=catalyst
|
pkgname=catalyst
|
||||||
version=13.1
|
version=13.1
|
||||||
revision=3
|
revision=4
|
||||||
short_desc="AMD catalyst driver for Linux -- libraries and utilities"
|
short_desc="AMD catalyst driver for Linux -- libraries and utilities"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
license="Propietary AMD license"
|
license="Propietary AMD license"
|
||||||
|
@ -33,6 +33,7 @@ do_build() {
|
||||||
do_install() {
|
do_install() {
|
||||||
cd ${wrksrc}/fglrx
|
cd ${wrksrc}/fglrx
|
||||||
patch -Np0 -i ${FILESDIR}/arch-fglrx-3.7.patch
|
patch -Np0 -i ${FILESDIR}/arch-fglrx-3.7.patch
|
||||||
|
patch -Np0 -i ${FILESDIR}/kernel-3.8-fixes.patch
|
||||||
|
|
||||||
install -dm755 ${DESTDIR}/usr/{bin,sbin}
|
install -dm755 ${DESTDIR}/usr/{bin,sbin}
|
||||||
install -dm755 ${DESTDIR}/usr/lib/{dri,xorg/modules/{dri,drivers,extensions/fglrx,linux},systemd/system}
|
install -dm755 ${DESTDIR}/usr/lib/{dri,xorg/modules/{dri,drivers,extensions/fglrx,linux},systemd/system}
|
||||||
|
|
Loading…
Add table
Reference in a new issue