]> git.pld-linux.org Git - packages/linux-gpib.git/blame - kernel-5.10.patch
- upstream: disable driver that does not build on kernel 5.10
[packages/linux-gpib.git] / kernel-5.10.patch
CommitLineData
403be2a0
JR
1------------------------------------------------------------------------
2r1927 | dpenkler | 2020-11-23 12:54:12 +0100 (Mon, 23 Nov 2020) | 1 line
3
4Exclude compilation of lpvo for KERNEL >= 5.10
5
6Index: linux-gpib-kernel/drivers/gpib/Makefile
7===================================================================
8--- linux-gpib-kernel/drivers/gpib/Makefile (revision 1926)
9+++ linux-gpib-kernel/drivers/gpib/Makefile (revision 1927)
10@@ -2,6 +2,9 @@
11 LINUXINCLUDE := -I$(GPIB_TOP_DIR)/compat/include $(LINUXINCLUDE)
12 endif
13
14+KERNEL_GE_5_10 = $(shell expr \( $(VERSION) '>' "5" \) \| \
15+ \( \( $(VERSION) '=' "5" \) \& \( $(PATCHLEVEL) '>=' 10 \) \) )
16+
17 subdir-ccflags-y := -I$(src)/include \
18 -DHAVE_DEV_OF_NODE=$(HAVE_DEV_OF_NODE) \
19 -DGPIB_CONFIG_PCMCIA=$(GPIB_CONFIG_PCMCIA) \
20@@ -17,7 +20,9 @@
21 obj-y += hp_82335/
22 obj-y += hp_82341/
23 obj-y += ines/
24-obj-$(CONFIG_USB) += lpvo_usb_gpib/
25+ifeq (${KERNEL_GE_5_10},0)
26+ obj-$(CONFIG_USB) += lpvo_usb_gpib/
27+endif
28 obj-y += nec7210/
29 obj-$(CONFIG_USB) += ni_usb/
30 ifeq ($(CONFIG_GPIB_ISA),yes)
This page took 0.030124 seconds and 4 git commands to generate.