Kconfig .config Makefile 联系和区别
一、Kconfig
1.定义:
一个文本形式的文件,其中主要作用是在内核配置时候,作为配置选项。
即:在Kconfig文件中添加配置选项。
2.语法:
config symbol //是个新的标记的菜单项
options //是在这个新的菜单项下的属性和选项
例:config HELLO_MODULE
bool “hello test module”
depends on ARCH_PXA
help
XXXX
3.options5种类型:
bool布尔类型/tristate三态/string字符串/hex十六进制/integer整型
其中,bool:菜单项显示为[],.config中生成一个 CONFIG_XXX=y/n (选中/不选中)
tristate:菜单项显示为<>, .config中生成一个 CONFIG_XXX