Fixed Makefile to build properly master
authorVZ Cambria <vzcambria@gmail.com>
Fri, 30 Dec 2016 16:58:56 +0000 (11:58 -0500)
committerVZ Cambria <vzcambria@gmail.com>
Fri, 30 Dec 2016 16:58:56 +0000 (11:58 -0500)
Makefile

index b199997..cea6d11 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,8 @@ obj-m   := $(TARGET).o
 
 else
 
-KERNELDIR ?= /usr/src/linux
+#KERNELDIR ?= /usr/src/linux
+KERNELDIR ?= /lib/modules/$(shell uname -r)/build
 PWD       := $(shell pwd)
 
 default: