1、确定驱动文件存放的位置
2、修改该目录下的Makefile 和 Kconfig 文件
修改 Makefile:
obj-$(CONFIG_KEY_DRIVER) += Key_Driver.o
修改 Kconfig:
config KEY_DRIVER
tristate"KEY_DRIVER"
default y
---help---
If you say Y here,support for the key driver with computer interface will be
compiled into he kernel and accessible via device node. You can also say M here
and the driver will be built as a module named Key_Driver.ko.
If unsure, say Y.
配置完成之后,make menuconfig 就可以找到自己的驱动文件了
阅读(757) | 评论(0) | 转发(0) |