当前位置: 技术问答>linux和unix
关于linux2.6的makefile
来源: 互联网 发布时间:2016-04-25
本文导语: 在主Makefile里都没有 menuconfig这一项 但是要输入make menuconfig 却还可以执行 ???这是怎么弄的 啊 2.6makefile太怪了 | grep -r "menuconfig" * | grep Makefile Makefile:# make menuconfig etc. scripts/kconfig...
在主Makefile里都没有 menuconfig这一项
但是要输入make menuconfig 却还可以执行 ???这是怎么弄的 啊
2.6makefile太怪了
但是要输入make menuconfig 却还可以执行 ???这是怎么弄的 啊
2.6makefile太怪了
|
grep -r "menuconfig" * | grep Makefile
Makefile:# make menuconfig etc.
scripts/kconfig/Makefile:PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config
scripts/kconfig/Makefile:menuconfig: $(obj)/mconf
scripts/kconfig/Makefile: @echo ' menuconfig - Update current config utilising a menu based program'
scripts/kconfig/Makefile:ifeq ($(MAKECMDGOALS),menuconfig)
在这。
Makefile:# make menuconfig etc.
scripts/kconfig/Makefile:PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config
scripts/kconfig/Makefile:menuconfig: $(obj)/mconf
scripts/kconfig/Makefile: @echo ' menuconfig - Update current config utilising a menu based program'
scripts/kconfig/Makefile:ifeq ($(MAKECMDGOALS),menuconfig)
在这。
|
看到这行了吧:
config %config: scripts_basic outputmakefile FORCE
$(Q)mkdir -p include/linux include/config
$(Q)$(MAKE) $(build)=scripts/kconfig $@
会调用 /scripts/kconfig/Makefile
config %config: scripts_basic outputmakefile FORCE
$(Q)mkdir -p include/linux include/config
$(Q)$(MAKE) $(build)=scripts/kconfig $@
会调用 /scripts/kconfig/Makefile