mainmenu "U-Boot $UBOOTVERSION Configuration"
和 makefile 一样,Kconfig 也可以调用其他子目录中的 Kconfig 文件,调用方法如下:
source "xxx/Kconfig" //xxx 为具体的目录名,相对路径
在顶层 Kconfig 中有如下代码:
source "arch/Kconfig"
................
source "drivers/Kconfig"
source "fs/Kconfig"
source "lib/Kconfig"
source "test/Kconfig"
menu "General setup"
.................
When disabling this, please check if malloc calls, maybe
should be replaced by calloc - if expects zeroed memory.
endif
endmenu # General setup
menuconfig MODULES
bool "菜单"
if MODULES
...
endif # MODULES
menu "General setup"
.................
menuconfig EXPERT
bool "Configure standard U-Boot features (expert users)"
default y
help
This option allows certain base U-Boot options and settings
to be disabled or tweaked. This is for specialized
environments which can tolerate a "non-standard" U-Boot.
Only use this if you really know what you are doing.
if EXPERT
.................
should be replaced by calloc - if expects zeroed memory.
endif
endmenu # General setup
General setup-> Configure standard U-Boot features (expert users) --->
配置界面如下图所示: