u-boot中定义的"xxxxxdefconfig file"的变量(比如CONFIG_DM_MMC)在哪里?

Where is the variable (such as CONFIG_DM_MMC) of "xxxxxdefconfig file" defined in u-boot ?

CONFIG_OF_CONTROL=y
CONFIG_OF_EMBED=y
CONFIG_DEFAULT_DEVICE_TREE="stm32h743i-eval"
CONFIG_DM_MMC=y
CONFIG_STM32_SDMMC2=y

u-boot工程中找不到左边的oud变量

grep -GHrn 'config DM_MMC'

产量

drivers/mmc/Kconfig:26:config DM_MMC

这是您在其中找到定义的 Kconfig 文件。

https://www.kernel.org/doc/html/latest/kbuild/kconfig-language.html 是学习配置变量的良好开端。