From d5b04c61241d7f19218695ba9dd9936f33412b3b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Mon, 31 Jul 2023 10:53:22 +0200 Subject: [PATCH] - reenable ISA driver and fix missing header --- isa-dma.patch | 10 ++++++++++ linux-gpib.spec | 6 ++++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 isa-dma.patch diff --git a/isa-dma.patch b/isa-dma.patch new file mode 100644 index 0000000..f8251ce --- /dev/null +++ b/isa-dma.patch @@ -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 + #include + #include ++#include + + MODULE_LICENSE("GPL"); + diff --git a/linux-gpib.spec b/linux-gpib.spec index 9f74063..b492823 100644 --- a/linux-gpib.spec +++ b/linux-gpib.spec @@ -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 -- 2.44.0