add helper files

master
grisel-davy 3 years ago
parent c63a224e2e
commit 1f92d206ed

9
.gitignore vendored

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

@ -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…
Cancel
Save