I'm writing a kernel module which depends on one existing kernel module. I'm building my module out of the tree (as an external module).
How can I declare the dependency, so that it is recognized by depmod?
I'm writing a kernel module which depends on one existing kernel module. I'm building my module out of the tree (as an external module).
How can I declare the dependency, so that it is recognized by depmod?
While not entirely satisfying, the best I've come up with to make
modprobe
work is either adding an entry tomodules.dep
or alternatively, symbolically linking the out-of-tree module to
/lib/modules/
and let depmod figure out the dependenciesYou don't need to. depmod will run through all modules in the current /lib/modules/ directory and build it's dependency tree based on unresolved symbols.
By default it will assume any symbol not provided by another module is in the kernel however you can use the -e/-F options to check that is the case too.