diff options
author | Aurelien Jarno <aurelien@aurel32.net> | 2020-04-13 18:54:23 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2020-04-13 21:51:32 +0200 |
commit | 5f76c571ec23cad3c9f79d634141293eae080643 (patch) | |
tree | 941af0cc25836dc3063631855ca7776ea21cae31 /tas5825m-module/Makefile | |
parent | e7101511824d54e836f4b6ccee630aef118a1ade (diff) | |
download | rpi-amp-5f76c571ec23cad3c9f79d634141293eae080643.tar.gz |
Add preliminary kernel module
Diffstat (limited to 'tas5825m-module/Makefile')
-rw-r--r-- | tas5825m-module/Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tas5825m-module/Makefile b/tas5825m-module/Makefile new file mode 100644 index 0000000..2147d32 --- /dev/null +++ b/tas5825m-module/Makefile @@ -0,0 +1,21 @@ +ifneq ($(KERNELRELEASE),) +# kbuild part of makefile +obj-m := tas5825m.o +else + +# Normal Makefile + +KERNELDIR := /lib/modules/`uname -r`/build +all: + $(MAKE) -C $(KERNELDIR) M=`pwd` modules + +debug: + $(MAKE) -C $(KERNELDIR) EXTRA_CFLAGS=-DDEBUG M=`pwd` modules + +modules_install: + $(MAKE) -C $(KERNELDIR) M=`pwd` modules_install + +clean: + rm -rf *.o *.ko *.mod.c *.mod .*.cmd Module.symvers modules.order .tmp_versions + +endif |