如果我们由多个C文件来构造一个模块,那么C文件的名字不能和模块名字一样。
例如:
hello_main.c,file1.c file2.c
在Makefile:
obj-m := hello.o
hello-objs = file1.o file2.o hello_main.o。
Linux驱动开发错误:module license 'unspecified' taints kernel
最新推荐文章于 2024-01-07 20:54:48 发布
如果我们由多个C文件来构造一个模块,那么C文件的名字不能和模块名字一样。
例如:
hello_main.c,file1.c file2.c
在Makefile:
obj-m := hello.o
hello-objs = file1.o file2.o hello_main.o。