Linux: modpost does not build anything

前端 未结 12 1101
-上瘾入骨i
-上瘾入骨i 2020-12-20 14:58

I am having problems getting any kernel modules to build on my machine. Whenever I build a module, modpost always says there are zero modules:

MODPOST 0 modu         


        
12条回答
  •  春和景丽
    2020-12-20 15:17

    In another thread I found that when I copy pasted the makefile contents, the -C after make was using the wrong "-" symbol and I had to re type it. It just so happens that this is the case for the obj-m += ... line above. You need to retype that character to make it valid. This should hopefully be found by anyone following the hello world module tutorial.

提交回复
热议问题