blob: 7db57802bff274a754f14a1afb8edf19b99e674c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
diff --git a/sllin/Makefile b/sllin/Makefile
index 8ae7510..037846f 100644
--- a/sllin/Makefile
+++ b/sllin/Makefile
@@ -1,10 +1,11 @@
obj-m += sllin.o
-KPATH=/lib/modules/$(shell uname -r)/build
+KPATH=$(KERNEL_SRC)
#KPATH=/mnt/data/_dokumenty_/_w_/_dce_can_/src/can-benchmark/kernel/build/shark/3.0.4
#KPATH=/mnt/data/_dokumenty_/_w_/_dce_can_/src/can-benchmark/kernel/build/shark/2.6.36
-
+SRC := $(shell pwd)
all:
- make -C ${KPATH} M=$(PWD) modules
-
+ make -C ${KPATH} M=$(SRC) modules
+modules_install:
+ make -C ${KPATH} M=$(SRC) modules_install
clean:
- make -C ${KPATH} M=$(PWD) clean
+ make -C ${KPATH} M=$(SRC) clean
|