summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ad82000..614f663 100644
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,4 @@
+KERNEL_SOURCE ?= /usr/src/linux-headers-$(shell uname -r)
+
all:
- make ARCH=arm -C /usr/src/linux-headers-"`uname -r`" SUBDIRS="`pwd`" modules
+ make ARCH=arm -C $(KERNEL_SOURCE) SUBDIRS="`pwd`" modules