# 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
文章插图
推荐阅读
- Ubuntu安装Docker及镜像加速器
- HYTHIOL-C PLUS白兔牌美白丸 吃了一个月后的反馈
- 十一 前后端分离项目:实现"删"功能(前后端)
- 七 pod:静态pod
- 夯实Java基础,一篇文章全解析线程问题
- 天猫童装店铺销量排行榜前十,巴拉巴拉童装销量第一
- 红魔6SPro参数配置_参数详情
- 电脑玩游戏很卡,根本带不动怎么办(电脑玩游戏玩一会就卡怎么办)
- 玩游戏卡怎么办(一招恢复手机卡顿)
- 怎么画羊简笔画四年级(画一个最简单的羊)