1*4882a593SmuzhiyunFix build for linux >= 4.x 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunInstead of relying on testing for '3' as the linux kernel major verison, 4*4882a593Smuzhiyuncheck that it is 2.x to include the proper Makefile, otherwise forcibly 5*4882a593Smuzhiyuninclude the .26 Makefile, that is good for 3.x and 4.x too. 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunSigned-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> 8*4882a593Smuzhiyun 9*4882a593Smuzhiyundiff -durN linux-fusion-9.0.2.orig/Makefile linux-fusion-9.0.2/Makefile 10*4882a593Smuzhiyun--- linux-fusion-9.0.2.orig/Makefile 2013-07-15 11:58:03.000000000 +0200 11*4882a593Smuzhiyun+++ linux-fusion-9.0.2/Makefile 2015-06-06 19:03:04.059842652 +0200 12*4882a593Smuzhiyun@@ -62,10 +62,10 @@ 13*4882a593Smuzhiyun CPPFLAGS += -DHAVE_LINUX_CONFIG_H 14*4882a593Smuzhiyun endif 15*4882a593Smuzhiyun 16*4882a593Smuzhiyun-ifeq ($(K_VERSION),3) 17*4882a593Smuzhiyun- KMAKEFILE = Makefile-2.6 18*4882a593Smuzhiyun-else 19*4882a593Smuzhiyun+ifeq ($(K_VERSION),2) 20*4882a593Smuzhiyun KMAKEFILE = Makefile-2.$(K_PATCHLEVEL) 21*4882a593Smuzhiyun+else 22*4882a593Smuzhiyun+ KMAKEFILE = Makefile-2.6 23*4882a593Smuzhiyun endif 24*4882a593Smuzhiyun 25*4882a593Smuzhiyun check-version = $(shell expr \( $(K_VERSION) \* 65536 + $(K_PATCHLEVEL) \* 256 + $(K_SUBLEVEL) \) \>= \( $(1) \* 65536 + $(2) \* 256 + $(3) \)) 26