]> git.pld-linux.org Git - packages/xorg-driver-video-fglrx.git/commitdiff
- fix building with linux 4.7 master auto/th/xorg-driver-video-fglrx-15.12-3
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 2 Aug 2016 05:40:01 +0000 (07:40 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 2 Aug 2016 05:40:01 +0000 (07:40 +0200)
- rel 3

linux-4.7.patch [new file with mode: 0644]
xorg-driver-video-fglrx.spec

diff --git a/linux-4.7.patch b/linux-4.7.patch
new file mode 100644 (file)
index 0000000..2d5593b
--- /dev/null
@@ -0,0 +1,22 @@
+--- xorg-driver-video-fglrx-15.12/common/lib/modules/fglrx/build_mod/firegl_public.h~  2015-12-18 19:47:41.000000000 +0100
++++ xorg-driver-video-fglrx-15.12/common/lib/modules/fglrx/build_mod/firegl_public.h   2016-08-02 07:38:26.487200932 +0200
+@@ -647,11 +647,19 @@
+ #endif
+ #ifndef cpu_has_pat
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,7,0)
+ #define cpu_has_pat  test_bit(X86_FEATURE_PAT, (void *) &boot_cpu_data.x86_capability)
++#else
++#define cpu_has_pat boot_cpu_has(X86_FEATURE_PAT)
++#endif
+ #endif
+ #ifndef cpu_has_pge
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,7,0)
+ #define cpu_has_pge test_bit(X86_FEATURE_PGE, &boot_cpu_data.x86_capability)
++#else
++#define cpu_has_pge boot_cpu_has(X86_FEATURE_PGE)
++#endif
+ #endif
+ /* 2.6.29 defines pgprot_writecombine as a macro which resolves to a
index 84dde3b8a6b6d981075479103b9db6cfa63df949..70f632d719c1e5a6d656e9df1402c02e3754471d 100644 (file)
@@ -32,7 +32,7 @@ exit 1
 %define                betaver         1.0
 #define                rel             0.beta%{betaver}.3
 
-%define                rel             2
+%define                rel             3
 %define                pname           xorg-driver-video-fglrx
 Summary:       Linux Drivers for AMD/ATI graphics accelerators
 Summary(pl.UTF-8):     Sterowniki do akceleratorów graficznych AMD/ATI
@@ -67,6 +67,7 @@ Patch10:      linux-4.3.patch
 Patch11:       linux-4.4.patch
 Patch12:       linux-4.5.patch
 Patch13:       linux-4.6.patch
+Patch14:       linux-4.7.patch
 URL:           http://ati.amd.com/support/drivers/linux/linux-radeon.html
 %{?with_kernel:%{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}}
 BuildRequires: rpmbuild(macros) >= 1.701
@@ -238,6 +239,7 @@ EOF
 %patch11 -p1
 %patch12 -p1
 %patch13 -p1
+%patch14 -p1
 
 install -d common{%{_prefix}/{%{_lib},bin,sbin},/etc}
 cp -a %{x11ver}%{arch_sufix}/usr/X11R6/%{_lib}/* common%{_libdir}
This page took 0.204461 seconds and 4 git commands to generate.