| Device driver + static link library? Hi,
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.
Thank you,
Ben |