Kconfig语法
mainmenu 主菜单
menu/endmenu条目 make menuconfig显示效果--->
menuconfig 带选项的菜单
config条目:
bool 类型有两种值:y n
tristate 类型有三种值:y m n
string 字符串类型,用来存储本地字符串
help 帮助信息
default 默认值
depends on 依赖项
select 被选中值
choice/endchoice
comment 注释
source 用于读取其他Kconfig文件
常见报错原因
'endmenu' in different file than 'menu'
location of the 'menu'
解决方法:需要在endmenu后面加一行空行。