git.iko.soy/typeable/nixpkgs
on master help sign in
Merge #5286: ati-driver: Update to 4.12
commit80e3018bc0bde424e070856c4686fd1b42d19a4a authorVladimír Čunát <vcunat@gmail.com> dateThu 11 Dec 2014, 22:12 (12 years ago) parent5f18c41b153110
4 files changed+36−38
pkgs/os-specific/linux/ati-drivers/builder.sh+1 pkgs/os-specific/linux/ati-drivers/default.nix+4−5 pkgs/os-specific/linux/ati-drivers/fglrx_3.17rc6-no_hotplug.patch+31 pkgs/os-specific/linux/ati-drivers/gentoo-patches.patch−33
pkgs/os-specific/linux/ati-drivers/builder.sh+1
@@ -224,6 +224,7 @@ fi
224224
225225 # libstdc++ and gcc are needed by some libs
226226 patchelf --set-rpath $gcc/$lib_arch $out/lib/libatiadlxx.so
227+ patchelf --set-rpath $gcc/$lib_arch $out/lib/xorg/modules/glesx.so
227228}
228229
229230if test -z "$libsOnly"; then
pkgs/os-specific/linux/ati-drivers/default.nix+4−5
@@ -31,7 +31,7 @@ assert (!libsOnly) -> kernel != null;
3131with stdenv.lib;
3232
3333stdenv.mkDerivation {
34− name = "ati-drivers-14.4" + (optionalString (!libsOnly) "-${kernel.version}");
34+ name = "ati-drivers-14.12" + (optionalString (!libsOnly) "-${kernel.version}");
3535
3636 builder = ./builder.sh;
3737
@@ -39,13 +39,12 @@ stdenv.mkDerivation {
3939 gcc = stdenv.gcc.gcc;
4040
4141 src = fetchurl {
42− url = http://www2.ati.com/drivers/linux/amd-catalyst-14-4-rev2-linux-x86-x86-64-may6.zip;
43− sha256 = "1xbhn55yifis9b0lzb3s03hc1bcq8jmy7l96m4x8d842n7ji7qlk";
42+ url = http://www2.ati.com/drivers/linux/amd-catalyst-omega-14.12-linux-run-installers.zip;
43+ sha256 = "0jd2scrdlyapynxfjdrarnwcdzxjqrk5fg5i10g3bm0ay8v9hrk8";
4444 curlOpts = "--referer http://support.amd.com/en-us/download/desktop?os=Linux%20x86_64";
4545 };
4646
47− # most patches are taken from gentoo
48− patchPhase = "patch -p1 < ${./gentoo-patches.patch}";
47+ patchPhase = "patch -p1 < ${./fglrx_3.17rc6-no_hotplug.patch}";
4948 patchPhaseSamples = "patch -p2 < ${./patch-samples.patch}";
5049
5150 buildInputs =
pkgs/os-specific/linux/ati-drivers/fglrx_3.17rc6-no_hotplug.patchnew file+31
@@ -0,0 +1,31 @@
1+source: https://aur.archlinux.org/packages/catalyst/
2+
3+diff -uNr 14.9/common/lib/modules/fglrx/build_mod/firegl_public.c 14.9/common/lib/modules/fglrx/build_mod/firegl_public.c
4+--- 14.9/common/lib/modules/fglrx/build_mod/firegl_public.c 2014-09-09 16:10:17.000000000 +0200
5++++ 14.9/common/lib/modules/fglrx/build_mod/firegl_public.c 2014-09-26 19:01:44.000000000 +0200
6+@@ -1093,6 +1093,9 @@
7+ // directly here to allow suspend/resume without X server start.
8+ firegl_pci_save_state((KCL_PCI_DevHandle)pdev, privdev);
9+ pci_disable_device(pdev);
10++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,17,0)
11++ pci_ignore_hotplug(pdev);
12++#endif
13+ PMSG_EVENT(pdev->dev.power.power_state) = state;
14+ }
15+ else
16+diff -uNr 14.9/common/lib/modules/fglrx/build_mod/kcl_acpi.c 14.9/common/lib/modules/fglrx/build_mod/kcl_acpi.c
17+--- 14.9/common/lib/modules/fglrx/build_mod/kcl_acpi.c 2014-09-09 16:10:17.000000000 +0200
18++++ 14.9/common/lib/modules/fglrx/build_mod/kcl_acpi.c 2014-09-26 18:57:27.000000000 +0200
19+@@ -840,10 +840,12 @@
20+ if(tdev != NULL)
21+ {
22+ device = (acpi_device_adr(tdev) >> 16) & 0xffff;
23++#if LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0)
24+ if(PCI_SLOT(pdev->devfn) == device)
25+ {
26+ tdev->flags.no_hotplug = true;
27+ }
28++#endif
29+ }
30+ #endif
31+ return 0;
pkgs/os-specific/linux/ati-drivers/gentoo-patches.patchdeleted−33
@@ -1,33 +0,0 @@
1−diff --git a/common/lib/modules/fglrx/build_mod/firegl_public.c b/common/lib/modules/fglrx/build_mod/firegl_public.c
2−index d3ad3ce..9362b58 100755
3−--- a/common/lib/modules/fglrx/build_mod/firegl_public.c
4−+++ b/common/lib/modules/fglrx/build_mod/firegl_public.c
5−@@ -34,6 +34,11 @@
6− #include <linux/autoconf.h>
7− #endif
8−
9−+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)
10−+#include <linux/uidgid.h>
11−+#endif
12−+
13−+
14− #if !defined(CONFIG_X86)
15− #if !defined(CONFIG_X86_PC)
16− #if !defined(CONFIG_X86_XEN)
17−@@ -1543,9 +1548,17 @@ KCL_TYPE_Pid ATI_API_CALL KCL_GetTgid(void)
18− KCL_TYPE_Uid ATI_API_CALL KCL_GetEffectiveUid(void)
19− {
20− #ifdef current_euid
21−+# if LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)
22−+ return __kuid_val(current_euid());
23−+# else
24− return current_euid();
25−+# endif
26− #else
27−+# if LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)
28−+ return __kuid_val(current->euid);
29−+# else
30− return current->euid;
31−+# endif
32− #endif
33− }