Open BlackFrog1 opened 5 years ago
Thanks for the suggestion.
Unfortunately I don't know much about building kernel modules. The only experience I have is building toy examples to test things and using a makefile similar to what you posted.
I'm happy to accept a PR with an example for a kernel module but wouldn't feel comfortable to write one at the moment.
You can find a straightforward tutorial here: https://musteresel.github.io/posts/2020/02/cmake-template-linux-kernel-module.html
Is it possible to create a loadable kernel module example?
I know what the result of the Makefile should be
`obj-m += main.o
all: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean`