Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: kbuild: make "make install" not depend on vmlinux

For the same reason as commit 19514fc665ff ("arm, kbuild: make "make
install" not depend on vmlinux"), the install targets should never
trigger the rebuild of the kernel.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>

authored by

Masahiro Yamada and committed by
Will Deacon
8684fa3e 722ec35f

+17 -3
+1 -1
arch/arm64/Makefile
··· 88 88 Image.%: vmlinux 89 89 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ 90 90 91 - zinstall install: vmlinux 91 + zinstall install: 92 92 $(Q)$(MAKE) $(build)=$(boot) $@ 93 93 94 94 %.dtb: scripts
+2 -2
arch/arm64/boot/Makefile
··· 34 34 $(obj)/Image.lzo: $(obj)/Image FORCE 35 35 $(call if_changed,lzo) 36 36 37 - install: $(obj)/Image 37 + install: 38 38 $(CONFIG_SHELL) $(srctree)/$(src)/install.sh $(KERNELRELEASE) \ 39 39 $(obj)/Image System.map "$(INSTALL_PATH)" 40 40 41 - zinstall: $(obj)/Image.gz 41 + zinstall: 42 42 $(CONFIG_SHELL) $(srctree)/$(src)/install.sh $(KERNELRELEASE) \ 43 43 $(obj)/Image.gz System.map "$(INSTALL_PATH)"
+14
arch/arm64/boot/install.sh
··· 20 20 # $4 - default install path (blank if root directory) 21 21 # 22 22 23 + verify () { 24 + if [ ! -f "$1" ]; then 25 + echo "" 1>&2 26 + echo " *** Missing file: $1" 1>&2 27 + echo ' *** You need to run "make" before "make install".' 1>&2 28 + echo "" 1>&2 29 + exit 1 30 + fi 31 + } 32 + 33 + # Make sure the files actually exist 34 + verify "$2" 35 + verify "$3" 36 + 23 37 # User may have a custom install script 24 38 if [ -x ~/bin/${INSTALLKERNEL} ]; then exec ~/bin/${INSTALLKERNEL} "$@"; fi 25 39 if [ -x /sbin/${INSTALLKERNEL} ]; then exec /sbin/${INSTALLKERNEL} "$@"; fi