linux proc 驱动2

1. 首先drivers/base/Kconfig

   在  menu "Generic Driver Options"

   下面加入 

   config QVB_OK

       tristate "Proc fortune for qvb3d"

       help

       Fortune for qvb3d

2. 再修改drivers/base/Makefile

   obj-$(CONFIG_QVB_OK) += proc.o

   其中proc.o  的源文件就放在

   /drivers/base/proc.c

3. 进入内核配置 make menuconfig

   Device Drivers---->

                Generic Driver Options---->

                                          Proc fortune for qvb3d

   就可以选择加入它了


猜你喜欢

转载自qvb3d.iteye.com/blog/1172541