add helper files

This commit is contained in:
grisel-davy 2021-02-16 15:53:23 +01:00
parent c63a224e2e
commit 1f92d206ed
2 changed files with 20 additions and 0 deletions

9
.gitignore vendored Normal file
View file

@ -0,0 +1,9 @@
*.cmd
*.symvers
*.ko
*.mod
*.mod.c
*.o
*.gz
*.order
*.txt

11
Makefile Normal file
View 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