你好,游客 登录 注册 搜索
背景:
阅读新闻

Android内核驱动开发中的Kconfig文件结构分析(图文)

[日期:2012-01-02] 来源:Linux社区  作者:bullbat [字体:大 中 小]

2.3.6 帮助

语法:

  1. help/---help--- <字符串>  
例如:
  1. config EXTRA_FIRMWARE_DIR  
  2.     string "Firmware blobs root directory"  
  3.     depends on EXTRA_FIRMWARE != ""  
  4.     default "firmware"  
  5.     help  
  6.       This option controls the directory in which the kernel build system  
  7.       looks for the firmware files listed in the EXTRA_FIRMWARE option.  
  8.       The default is the firmware/ directory in the kernel source tree,  
  9.       but by changing this option you can point it elsewhere, such as  
  10.       the /lib/firmware/ directory or another separate directory  
  11.       containing firmware files.  
help相当于注释一样,在给编辑Kconfig文件的人看的,这样可以保持其可读性.

3 举例

Kconfig:

  1. # drivers/Kconfig  
  2.   
  3. menu "Device Drivers"  
  4.   
  5. source "drivers/base/Kconfig"  
  6.   
  7. source "drivers/connector/Kconfig"  
  8.   
  9. source "drivers/mtd/Kconfig"  
  10. ...  
  11. endmenu  
其对应的make menuconfig界面如下图所示:

linux
相关资讯       Android开发教程 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款