How to recompile just a single kernel module?

前端 未结 5 812
-上瘾入骨i
-上瘾入骨i 2021-01-29 22:42

Usually kernel source are stored in /usr/src/linux-2.6.x/. To avoid to recompile the entire kernel if I modify a module\'s source, how can I recompile just that mod

5条回答
  •  萌比男神i
    2021-01-29 23:18

    You can pass the path to the module name or module directory to make as parameter.

    make path/to/the/module/itself.ko
    make path/to/the/module/directory/
    

提交回复
热议问题