Device driver + static link library?
To compile a loadable module, as far as I know you add something like this to the make file:
obj-m := my_module1.o my_module2.o
But what if I want to link with a static library? Is there a way to do this? Seems like simply adding 3rd_party_library.a to obj-m I get something like
target '3rd_party_library.a' doesn't match the target pattern
If I were to write the makefile from scratch I'd try something like
ld -r -o my_module.ko my_module1.o my_module2.o 3rd_party_library.a
But within the framework of the existing directory structure and multi-level make files and all that I don't know how to do it.
Kernel module static linking without source of the static object
Need help concerning the same issue...
How do we include a .o or .a file so that the make process just links with this file instead of trying to compile it?!