Chinaunix首页 | 论坛 | 博客
  • 博客访问: 155813
  • 博文数量: 60
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 458
  • 用 户 组: 普通用户
  • 注册时间: 2014-04-04 10:01
文章分类

全部博文(60)

文章存档

2016年(3)

2014年(57)

我的朋友

分类: LINUX

2014-05-09 09:22:10

内核中添加自己的驱动程序,奇怪的是老出现如下问题:


[root@localhost kernel]# make menuconfig
scripts/kconfig/mconf Kconfig
drivers/xxxx/Kconfig:10: 'endmenu' in different file than 'menu'
drivers/xxxx/Kconfig:2: location of the 'menu'
drivers/Kconfig:117: 'endmenu' in different file than 'menu'
drivers/advantech/Kconfig:2: location of the 'menu'
make[1]: *** [menuconfig] Error 1
make: *** [menuconfig] Error 2


找了老半天,没有发现问题阿,没办法又把其他的Kconfig问价复制粘贴,删除试试,最发现是因为我的Kconfig文件:

menu "XXXXX Device Drivers"

config UNO_DIO_LED
        tristate "XXX dio and led"
       help
      Generic dio led driver.
      Used for XXX and OMAP3 SDP.
      
endmenu


在“endmenu”后面必须要有一个空行,应该是(关键字简析的时候除了匹配问题)

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