How to recompile just a single kernel module?

前端 未结 5 720
-上瘾入骨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条回答
  •  生来不讨喜
    2021-01-29 23:08

    make -C /lib/modules/$(uname -r)/build M=$(pwd) modules
    make -C /lib/modules/$(uname -r)/build M=$(pwd) modules_install
    

    https://askubuntu.com/questions/515407/how-recipe-to-build-only-one-kernel-module

提交回复
热议问题