先开个坑
make install
install这个target并不是Makefile里面的,Makefile中include了arch/x86/Makefile
,我们可以看到arch/x86/Makefile
中的installl如下:
$(Q)$(MAKE) $(build)=$(boot) $@
build是在scripts/Kbuild.include
中定义的,为build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build obj
,一般来说就是build := -f scripts/Makefile.build obj
Q则为空或者@
那么install的命令就成了make -f scripts/Makefile.build obj=arch/x86/boot install
而Makefile.build中同样没有install这一target,但是它会include obj下的Makefile,而arch/x86/boot/Makef