]> git.pld-linux.org Git - packages/linux-gpib.git/commitdiff
- reenable ISA driver and fix missing header
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 31 Jul 2023 08:53:22 +0000 (10:53 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Mon, 31 Jul 2023 08:53:22 +0000 (10:53 +0200)
isa-dma.patch [new file with mode: 0644]
linux-gpib.spec

diff --git a/isa-dma.patch b/isa-dma.patch
new file mode 100644 (file)
index 0000000..f8251ce
--- /dev/null
@@ -0,0 +1,10 @@
+--- linux-gpib-4.3.6/linux-gpib-kernel-4.3.6/drivers/gpib/pc2/pc2_init.c~      2022-08-22 18:07:00.000000000 +0200
++++ linux-gpib-4.3.6/linux-gpib-kernel-4.3.6/drivers/gpib/pc2/pc2_init.c       2023-07-31 10:51:41.010507617 +0200
+@@ -25,6 +25,7 @@
+ #include <asm-generic/dma.h>
+ #include <linux/string.h>
+ #include <linux/init.h>
++#include <linux/dma-mapping.h>
+ MODULE_LICENSE("GPL");
index 9f74063606732824d87aa613f9f2c868246f2870..b492823061da3a011a186cc5dca42611f172de7e 100644 (file)
@@ -1,7 +1,7 @@
 #
 # Conditional build:
 %bcond_without kernel          # kernel modules
-%bcond_with    drivers_isa     # ISA kernel drivers [ix86 only]
+%bcond_without drivers_isa     # ISA kernel drivers [ix86 only]
 %bcond_without drivers_usb     # USB kernel drivers
 %bcond_without userspace       # userspace packages
 %bcond_without verbose         # verbose modules build (V=1)
@@ -59,6 +59,7 @@ Patch8:               kernel-5.2.patch
 Patch9:                kernel-5.10.patch
 Patch10:       pkgconfig-version.patch
 Patch11:       linux-gpib-guile3.patch
+Patch12:       isa-dma.patch
 URL:           http://linux-gpib.sourceforge.net/
 BuildRequires: autoconf >= 2.50
 BuildRequires: automake
@@ -258,7 +259,7 @@ Ten pakiet zawiera sterowniki dla Linuksa do urządzeń GPIB (IEEE 488).\
 
 %define build_kernel_pkg()\
 %{__make} VERBOSE=1 LINUX_SRCDIR=%{_kernelsrcdir} clean\
-%{__make} VERBOSE=1 LINUX_SRCDIR=%{_kernelsrcdir} %{?with_drivers_isa:ENABLE_ISA=m}%{!?with_drivers_isa:ENABLE_ISA=n}\
+%{__make} VERBOSE=1 LINUX_SRCDIR=%{_kernelsrcdir}\
 cd drivers/gpib\
 %if %{_kernel_version_code} < %{_kernel_version_magic 5 10 0}\
 %if %{with drivers_usb}\
@@ -300,6 +301,7 @@ cd linux-gpib-kernel-%{version}
 %ifarch %{ix86}
 %patch8 -p1
 %endif
+%patch12 -p1
 %endif
 
 %build
This page took 0.130371 seconds and 4 git commands to generate.