I am very new to Linux device drivers.
In Makefile what is obj-m
?
What is the difference between obj-m
and obj-m+
?
I am very new to Linux device drivers.
In Makefile what is obj-m
?
What is the difference between obj-m
and obj-m+
?
"obj-m := .o"
The kbuild system in kernel will build mod_name.o from mod_name.c After linking these files will get kernel module mod_name.ko.
The above line can be put in either a "Kbuild" file or a "Makefile."
When the module is built from multiple sources, an additional line is needed listing the files:
<module_name>-y := <src1>.o <src2>.o ...
For detailed info about this you can refer here