I'm trying to build some kernel module acts like simple firewall for practicing kernel programming. I'm trying to build my module split to multiple c and header files but it won't finish build with error that I didn't define licence even I defined with MODULE_LICENSE("GPL"); My Make file is
obj-m += firewall.o
firewall-objs := fileio.o plstring.o rulemanager.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
Is there any way to build kernel module split to multiple files? I have tried to define licence to every c files but it didn't work.