Chinaunix首页 | 论坛 | 博客
  • 博客访问: 299987
  • 博文数量: 101
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 150
  • 用 户 组: 普通用户
  • 注册时间: 2013-12-07 07:42
文章分类

全部博文(101)

文章存档

2016年(12)

2015年(48)

2014年(41)

我的朋友

分类: C/C++

2015-05-13 21:18:53

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 就可以找到自己的驱动文件了

阅读(711) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~