diff options
author | Vi0L0 | 2016-10-03 21:33:52 +0200 |
---|---|---|
committer | Vi0L0 | 2016-10-03 21:33:52 +0200 |
commit | 3d4a52471b1c132b55b13d4efabff7a442a98921 (patch) | |
tree | e06d4cdc49fb9387c39484a530d9b3a7ac4e89f4 | |
parent | 37d92c1f9013698167d70cdf0730ddc35374e0e5 (diff) | |
download | aur-3d4a52471b1c132b55b13d4efabff7a442a98921.tar.gz |
15.12-10: newer patch for 4.7 + bumping pkgver and deps to add 4.8 kernel support
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | 4.7-arch-cpu_has_pge-v2.patch | 70 | ||||
-rw-r--r-- | 4.7-arch-cpu_has_pge.patch | 53 | ||||
-rw-r--r-- | PKGBUILD | 10 |
4 files changed, 79 insertions, 62 deletions
@@ -1,7 +1,7 @@ pkgbase = catalyst-test pkgdesc = AMD/ATI Catalyst drivers for linux AKA Crimson. catalyst-dkms + catalyst-utils + lib32-catalyst-utils + experimental powerXpress suppport. PRE-GCN Radeons ARE NOT SUPPORTED pkgver = 15.12 - pkgrel = 8 + pkgrel = 10 url = http://www.amd.com install = catalyst-test.install arch = i686 @@ -9,7 +9,7 @@ pkgbase = catalyst-test license = custom depends = dkms depends = linux>=3.0 - depends = linux<4.8 + depends = linux<4.9 depends = linux-headers depends = xorg-server>=1.7.0 depends = xorg-server<1.18.0 @@ -80,7 +80,7 @@ pkgbase = catalyst-test source = 4.6-arch-get_user_pages-page_cache_release.patch source = dkms.conf source = makesh-dont-check-gcc-version.patch - source = 4.7-arch-cpu_has_pge.patch + source = 4.7-arch-cpu_has_pge-v2.patch md5sums = 39808c8a9bcc9041f1305e3531b60622 md5sums = af7fb8ee4fc96fd54c5b483e33dc71c4 md5sums = bdafe749e046bfddee2d1c5e90eabd83 @@ -106,7 +106,7 @@ pkgbase = catalyst-test md5sums = 11b7c2e0dc4794801005d66b0e7608a3 md5sums = 23d569abfdd7de433d76e003e4b3ccf9 md5sums = 10829e3b992b3e80a6e78c8e27748703 - md5sums = fa8cb4422218e251fe2eb7d31a4b0c61 + md5sums = 37eef5103a11d8136979463e7bc31091 pkgname = catalyst-test diff --git a/4.7-arch-cpu_has_pge-v2.patch b/4.7-arch-cpu_has_pge-v2.patch new file mode 100644 index 000000000000..cb86f5aff276 --- /dev/null +++ b/4.7-arch-cpu_has_pge-v2.patch @@ -0,0 +1,70 @@ +diff -uNr 16.8/common/lib/modules/fglrx/build_mod/firegl_public.c 16.8b/common/lib/modules/fglrx/build_mod/firegl_public.c +--- 16.8/common/lib/modules/fglrx/build_mod/firegl_public.c 2015-12-18 19:47:41.000000000 +0100 ++++ 16.8b/common/lib/modules/fglrx/build_mod/firegl_public.c 2016-08-15 15:09:37.228538907 +0200 +@@ -4518,7 +4518,11 @@ + write_cr0(cr0); + wbinvd(); + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,7,0) ++ if (boot_cpu_has(X86_FEATURE_PGE)) ++#else + if (cpu_has_pge) ++#endif + { + cr4 = READ_CR4(); + WRITE_CR4(cr4 & ~X86_CR4_PGE); +@@ -4532,7 +4536,11 @@ + wbinvd(); + __flush_tlb(); + write_cr0(cr0 & 0xbfffffff); ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,7,0) ++ if (boot_cpu_has(X86_FEATURE_PGE)) ++#else + if (cpu_has_pge) ++#endif + { + WRITE_CR4(cr4); + } +@@ -4559,7 +4567,11 @@ + write_cr0(cr0); + wbinvd(); + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,7,0) ++ if (boot_cpu_has(X86_FEATURE_PGE)) ++#else + if (cpu_has_pge) ++#endif + { + cr4 = READ_CR4(); + WRITE_CR4(cr4 & ~X86_CR4_PGE); +@@ -4572,7 +4584,11 @@ + wbinvd(); + __flush_tlb(); + write_cr0(cr0 & 0xbfffffff); ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,7,0) ++ if (boot_cpu_has(X86_FEATURE_PGE)) ++#else + if (cpu_has_pge) ++#endif + { + WRITE_CR4(cr4); + } +diff -uNr 16.8/common/lib/modules/fglrx/build_mod/firegl_public.h 16.8b/common/lib/modules/fglrx/build_mod/firegl_public.h +--- 16.8/common/lib/modules/fglrx/build_mod/firegl_public.h 2015-12-18 19:47:41.000000000 +0100 ++++ 16.8b/common/lib/modules/fglrx/build_mod/firegl_public.h 2016-08-15 15:09:05.815141238 +0200 +@@ -650,9 +650,15 @@ + #define cpu_has_pat test_bit(X86_FEATURE_PAT, (void *) &boot_cpu_data.x86_capability) + #endif + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,7,0) ++#ifndef boot_cpu_has(X86_FEATURE_PGE) ++#define boot_cpu_has(X86_FEATURE_PGE) test_bit(X86_FEATURE_PGE, &boot_cpu_data.x86_capability) ++#endif ++#else + #ifndef cpu_has_pge + #define cpu_has_pge test_bit(X86_FEATURE_PGE, &boot_cpu_data.x86_capability) + #endif ++#endif + + /* 2.6.29 defines pgprot_writecombine as a macro which resolves to a + * GPL-only function with the same name. So we always use our own diff --git a/4.7-arch-cpu_has_pge.patch b/4.7-arch-cpu_has_pge.patch deleted file mode 100644 index 7ea3141a414c..000000000000 --- a/4.7-arch-cpu_has_pge.patch +++ /dev/null @@ -1,53 +0,0 @@ -diff -uNr 16.7/common/lib/modules/fglrx/build_mod/firegl_public.c 16.7b/common/lib/modules/fglrx/build_mod/firegl_public.c ---- 16.7/common/lib/modules/fglrx/build_mod/firegl_public.c 2015-12-18 19:47:41.000000000 +0100 -+++ 16.7b/common/lib/modules/fglrx/build_mod/firegl_public.c 2016-07-25 21:36:39.061216384 +0200 -@@ -4518,7 +4518,7 @@ - write_cr0(cr0); - wbinvd(); - -- if (cpu_has_pge) -+ if (boot_cpu_has(X86_FEATURE_PGE)) - { - cr4 = READ_CR4(); - WRITE_CR4(cr4 & ~X86_CR4_PGE); -@@ -4532,7 +4532,7 @@ - wbinvd(); - __flush_tlb(); - write_cr0(cr0 & 0xbfffffff); -- if (cpu_has_pge) -+ if (boot_cpu_has(X86_FEATURE_PGE)) - { - WRITE_CR4(cr4); - } -@@ -4559,7 +4559,7 @@ - write_cr0(cr0); - wbinvd(); - -- if (cpu_has_pge) -+ if (boot_cpu_has(X86_FEATURE_PGE)) - { - cr4 = READ_CR4(); - WRITE_CR4(cr4 & ~X86_CR4_PGE); -@@ -4572,7 +4572,7 @@ - wbinvd(); - __flush_tlb(); - write_cr0(cr0 & 0xbfffffff); -- if (cpu_has_pge) -+ if (boot_cpu_has(X86_FEATURE_PGE)) - { - WRITE_CR4(cr4); - } -diff -uNr 16.7/common/lib/modules/fglrx/build_mod/firegl_public.h 16.7b/common/lib/modules/fglrx/build_mod/firegl_public.h ---- 16.7/common/lib/modules/fglrx/build_mod/firegl_public.h 2015-12-18 19:47:41.000000000 +0100 -+++ 16.7b/common/lib/modules/fglrx/build_mod/firegl_public.h 2016-07-25 21:37:04.751276300 +0200 -@@ -650,8 +650,8 @@ - #define cpu_has_pat test_bit(X86_FEATURE_PAT, (void *) &boot_cpu_data.x86_capability) - #endif - --#ifndef cpu_has_pge --#define cpu_has_pge test_bit(X86_FEATURE_PGE, &boot_cpu_data.x86_capability) -+#ifndef boot_cpu_has(X86_FEATURE_PGE) -+#define boot_cpu_has(X86_FEATURE_PGE) test_bit(X86_FEATURE_PGE, &boot_cpu_data.x86_capability) - #endif - - /* 2.6.29 defines pgprot_writecombine as a macro which resolves to a @@ -27,7 +27,7 @@ pkgname=catalyst-test pkgver=15.12 -pkgrel=8 +pkgrel=10 # _betano=1.0 _amdver=15.302 pkgdesc="AMD/ATI Catalyst drivers for linux AKA Crimson. catalyst-dkms + catalyst-utils + lib32-catalyst-utils + experimental powerXpress suppport. PRE-GCN Radeons ARE NOT SUPPORTED" @@ -35,7 +35,7 @@ arch=('i686' 'x86_64') url="http://www.amd.com" license=('custom') options=('staticlibs' 'libtool' '!strip' '!upx') -depends=('dkms' 'linux>=3.0' 'linux<4.8' 'linux-headers' 'xorg-server>=1.7.0' 'xorg-server<1.18.0' 'libxrandr' 'libsm' 'fontconfig' 'libxcursor' 'libxi' 'gcc-libs' 'gcc>4.0.0' 'make' 'patch' 'libxinerama' 'mesa>=10.1.0-4') +depends=('dkms' 'linux>=3.0' 'linux<4.9' 'linux-headers' 'xorg-server>=1.7.0' 'xorg-server<1.18.0' 'libxrandr' 'libsm' 'fontconfig' 'libxcursor' 'libxi' 'gcc-libs' 'gcc>4.0.0' 'make' 'patch' 'libxinerama' 'mesa>=10.1.0-4') optdepends=('qt4: to run ATi Catalyst Control Center (amdcccle)' 'libxxf86vm: to run ATi Catalyst Control Center (amdcccle)' 'opencl-headers: headers necessary for OpenCL development' @@ -93,7 +93,7 @@ source=( 4.6-arch-get_user_pages-page_cache_release.patch dkms.conf makesh-dont-check-gcc-version.patch - 4.7-arch-cpu_has_pge.patch) + 4.7-arch-cpu_has_pge-v2.patch) md5sums=('39808c8a9bcc9041f1305e3531b60622' 'af7fb8ee4fc96fd54c5b483e33dc71c4' @@ -120,7 +120,7 @@ md5sums=('39808c8a9bcc9041f1305e3531b60622' '11b7c2e0dc4794801005d66b0e7608a3' '23d569abfdd7de433d76e003e4b3ccf9' '10829e3b992b3e80a6e78c8e27748703' - 'fa8cb4422218e251fe2eb7d31a4b0c61') + '37eef5103a11d8136979463e7bc31091') build() { @@ -309,7 +309,7 @@ package() { patch -Np1 -i ../grsec_arch.patch patch -Np1 -i ../4.6-arch-get_user_pages-page_cache_release.patch patch -Np1 -i ../makesh-dont-check-gcc-version.patch - patch -Np1 -i ../4.7-arch-cpu_has_pge.patch + patch -Np1 -i ../4.7-arch-cpu_has_pge-v2.patch # Prepare modules source files install -dm755 ${pkgdir}/usr/src/fglrx-${pkgver}/2.6.x |