一 UBOOT编译--- make xxx_deconfig过程详解( 四 )


# note:scripts/kconfig/Makefileifdef KBUILD_KCONFIGKconfig := $(KBUILD_KCONFIG)elseKconfig := Kconfigendif%_defconfig: $(obj)/conf $(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig) //$< = $(obj)/conf# Added for U-Boot (backward compatibility)%_config: %_defconfig @:编译的流程为: (1)先编译scripts/kconfig/conf可执行文件; (2)再执行scripts/kconfig/conf --defconfig=arch/…/configs/myimx8mmek240-8mm-2g_defconfig Kconfig语句
编译打印如下
make -f ./scripts/Makefile.build obj=scripts/kconfig myimx8mmek240-8mm-2g_defconfigcc -Wp,-MD,scripts/kconfig/.conf.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer-I/usr/include/ncursesw -DCURSES_LOC="<curses.h>"-DNCURSES_WIDECHAR=1 -DLOCALE-c -o scripts/kconfig/conf.o scripts/kconfig/conf.ccat scripts/kconfig/zconf.tab.c_shipped > scripts/kconfig/zconf.tab.ccat scripts/kconfig/zconf.lex.c_shipped > scripts/kconfig/zconf.lex.ccat scripts/kconfig/zconf.hash.c_shipped > scripts/kconfig/zconf.hash.ccc -Wp,-MD,scripts/kconfig/.zconf.tab.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer-I/usr/include/ncursesw -DCURSES_LOC="<curses.h>"-DNCURSES_WIDECHAR=1 -DLOCALE-Iscripts/kconfig -c -o scripts/kconfig/zconf.tab.o scripts/kconfig/zconf.tab.ccc-o scripts/kconfig/conf scripts/kconfig/conf.o scripts/kconfig/zconf.tab.oscripts/kconfig/conf--defconfig=arch/../configs/myimx8mmek240-8mm-2g_defconfig Kconfig## configuration written to .config#5 总结经过前面的分析可知:当执行make xxx_deconfig时 , 最终会执行以下两个语句: (1)make -f $(srctree)/scripts/Makefile.build obj=scripts/basic (2)make -f ./scripts/Makefile.build obj=scripts/kconfig xxx_deconfig

一 UBOOT编译--- make xxx_deconfig过程详解

文章插图

推荐阅读