本文接上一篇文章的内容。地址如下:uboot 顶层Makefile-make xxx_deconfig过程说明二_凌肖战的博客-CSDN博客
本文继续来学习 uboot 源码在执行 make xxx_deconfig 这个配置过程中,顶层 Makefile有关的执行思路。
uboot执行配置过程时,执行了两条关键命令。本文分析第二条命令:
make -f ./scripts/Makefile.build obj=scripts/kconfig xxx_defconfig
make -f ./scripts/Makefile.build obj=scripts/kconfig xxx_defconfig
同上一篇文章类似分析。各个变量值如下:
- src= scripts/kconfig
- kbuild-dir = ./scripts/kconfig
- kbuild-file = ./scripts/kconfig/Makefile
- include ./scripts/kconfig/Makefile
- 113 %_defconfig: $(obj)/conf
- 114 $(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$@
- $(Kconfig)
- 115
- 116 # Added for U-Boot (backward compatibility)
- 117 %_config: %_defconfig
- 118 @:
$(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig)
其中,变量值为:
- silent=-s 或为空
- SRCARCH=..
- Kconfig=Kconfig
@scripts/kconfig/conf --defconfig=arch/../configs/xxx_defconfig Kconfig
