Linux: modpost does not build anything

前端 未结 12 1097
-上瘾入骨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:23

    I can only guess your kernel build environment is botched, because it passes both the theoretical check (the look of the developer) as well as the practical test:

    make -C /lib/modules/2.6.36-rc8-32-desktop/build M=/dev/shm modules
    make[1]: Entering directory `/usr/src/linux-2.6.36-rc8-32-obj/x86_64/desktop'
    make -C ../../../linux-2.6.36-rc8-32 O=/usr/src/linux-2.6.36-rc8-32-obj/x86_64/desktop/. modules
      CC [M]  /dev/shm/hello.o
      Building modules, stage 2.
      MODPOST 1 modules
      CC      /dev/shm/hello.mod.o
      LD [M]  /dev/shm/hello.ko
    make[1]: Leaving directory `/usr/src/linux-2.6.36-rc8-32-obj/x86_64/desktop'
    

提交回复
热议问题