# # PHY Layer Configuration # menuconfig MDIO_DEVICE tristate "MDIO bus device drivers" help MDIO devices and driver infrastructure code.
config MDIO_BUS tristate default m if PHYLIB=m default MDIO_DEVICE help This internal symbol is used for link time dependencies and it reflects whether the mdio_bus/mdio_device code is built as a loadable module or built-in.
menuconfig : 添加一个菜单项 MDIO_DEVICE tristate:”MDIO bus device drivers” 可在menu菜单中设置状态 help:帮助信息
Makefile 和kconfig的关系
kernel源码目录中,每一个层级目录都会有一个Makefile文件,可以没有kconfig文件
graph LR
subgraph 编辑配置
a[kconfig]--告知编译选项-->b[Makefile]
end
subgraph 保存配置
b--链接对应.o文件-->c[.config]
end