如何编译带有内核头文件的单个驱动程序模块it87?

时间:2019-02-02 08:22:09

标签: c linux linux-kernel linux-device-driver

如何为运行中的内核5.0 rc4(仅提供头文件)获得可用的内核模块it87?
githubkernel.org上,哪里可以找到该运行内核版本的确切来源。

如果有可用资源,这就是我所要做的:

cat /lib/modules/`uname -r`/build/.config | head -n 5  
make -C $(KERNEL_SOURCE_DIR) M=`driver/hwmon` modules

或者:

gcc -DMODULE -D__KERNEL__ -isystem /lib/modules/\`uname -r\`/build/include -c it87.c -o it87.ko  

this stackoverflow answer

提供

0 个答案:

没有答案