diff --git a/doc/plustek/Makefile.kernel26 b/doc/plustek/Makefile.kernel26 index ae7c4713f..0a8f57f9b 100644 --- a/doc/plustek/Makefile.kernel26 +++ b/doc/plustek/Makefile.kernel26 @@ -8,6 +8,8 @@ ifeq ($(LINUXVERSION),) LINUXVERSION = $(shell uname -r) endif +LINUXRELEASE = $(shell uname -r | cut -d'.' -f3) + VERSION0 = $(shell cat $(SUBDIRS)/../VERSION0) VERSION1 = $(shell cat $(SUBDIRS)/../VERSION1) BUILD = $(shell cat $(SUBDIRS)/../BUILD) @@ -21,6 +23,10 @@ ifeq ($(DEBUG),y) EXTRA_CFLAGS += -DDEBUG endif +ifeq ($(shell test `uname -r | cut -d'.' -f3` -lt 6 && echo 1),1) + EXTRA_CFLAGS += -mhard-float +endif + # # the module name # @@ -48,7 +54,7 @@ KDIR := /lib/modules/$(shell uname -r)/build PWD := $(shell pwd) default: - $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules + $(MAKE) -C $(KDIR) M=$(PWD) modules endif #