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
13 CPPFLAGS += -DHAVE_LINUX_CONFIG_H
16 -ifeq ($(K_VERSION),3)
17 - KMAKEFILE = Makefile-2.6
19 +ifeq ($(K_VERSION),2)
20 KMAKEFILE = Makefile-2.$(K_PATCHLEVEL)
22 + KMAKEFILE = Makefile-2.6
25 check-version = $(shell expr \( $(K_VERSION) \* 65536 + $(K_PATCHLEVEL) \* 256 + $(K_SUBLEVEL) \) \>= \( $(1) \* 65536 + $(2) \* 256 + $(3) \))