python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / linux-fusion / 0001-fix-for-linux-4-and-above.patch
blob689d9bf107f67d70387d4d4bcafa7246259ded3f
1 Fix build for linux >= 4.x
3 Instead of relying on testing for '3' as the linux kernel major verison,
4 check that it is 2.x to include the proper Makefile, otherwise forcibly
5 include the .26 Makefile, that is good for 3.x and 4.x too.
7 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
9 diff -durN linux-fusion-9.0.2.orig/Makefile linux-fusion-9.0.2/Makefile
10 --- linux-fusion-9.0.2.orig/Makefile 2013-07-15 11:58:03.000000000 +0200
11 +++ linux-fusion-9.0.2/Makefile 2015-06-06 19:03:04.059842652 +0200
12 @@ -62,10 +62,10 @@
13 CPPFLAGS += -DHAVE_LINUX_CONFIG_H
14 endif
16 -ifeq ($(K_VERSION),3)
17 - KMAKEFILE = Makefile-2.6
18 -else
19 +ifeq ($(K_VERSION),2)
20 KMAKEFILE = Makefile-2.$(K_PATCHLEVEL)
21 +else
22 + KMAKEFILE = Makefile-2.6
23 endif
25 check-version = $(shell expr \( $(K_VERSION) \* 65536 + $(K_PATCHLEVEL) \* 256 + $(K_SUBLEVEL) \) \>= \( $(1) \* 65536 + $(2) \* 256 + $(3) \))