0001-fix-for-linux-4-and-above.patch 881 B

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