add helper files
This commit is contained in:
parent
c63a224e2e
commit
1f92d206ed
2 changed files with 20 additions and 0 deletions
9
.gitignore
vendored
Normal file
9
.gitignore
vendored
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
*.cmd
|
||||||
|
*.symvers
|
||||||
|
*.ko
|
||||||
|
*.mod
|
||||||
|
*.mod.c
|
||||||
|
*.o
|
||||||
|
*.gz
|
||||||
|
*.order
|
||||||
|
*.txt
|
11
Makefile
Normal file
11
Makefile
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
ifneq ($(KERNELRELEASE),)
|
||||||
|
# kbuild part of makefile
|
||||||
|
obj-m := adxl345.o
|
||||||
|
|
||||||
|
else
|
||||||
|
# normal makefile
|
||||||
|
KDIR ?= /lib/modules/`uname -r`/build
|
||||||
|
|
||||||
|
default:
|
||||||
|
$(MAKE) -C $(KDIR) M=$$PWD
|
||||||
|
endif
|
Loading…
Reference in a new issue