How to make one Linux kernel module depend on another external module with depmod?

前端 未结 2 657
猫巷女王i
猫巷女王i 2020-12-19 13:23

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 depe

2条回答
  •  佛祖请我去吃肉
    2020-12-19 14:04

    You 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.

提交回复
热议问题