sparc: move the install rule to arch/sparc/Makefile
authorMasahiro Yamada <masahiroy@kernel.org>
Thu, 29 Jul 2021 14:24:40 +0000 (23:24 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 2 Sep 2021 23:17:20 +0000 (08:17 +0900)
Currently, the install target in arch/sparc/Makefile descends into
arch/sparc/boot/Makefile to invoke the shell script, but there is no
good reason to do so.

arch/sparc/Makefile can run the shell script directly.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
arch/sparc/Makefile
arch/sparc/boot/Makefile

index 4e65245..24fb5a9 100644 (file)
@@ -72,7 +72,8 @@ image zImage uImage tftpboot.img vmlinux.aout: vmlinux
        $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
 
 install:
-       $(Q)$(MAKE) $(build)=$(boot) $@
+       sh $(srctree)/$(boot)/install.sh $(KERNELRELEASE) $(KBUILD_IMAGE) \
+               System.map "$(INSTALL_PATH)"
 
 archclean:
        $(Q)$(MAKE) $(clean)=$(boot)
index 380e2b0..849236d 100644 (file)
@@ -70,7 +70,3 @@ $(obj)/image: vmlinux FORCE
 $(obj)/tftpboot.img: $(obj)/image $(obj)/piggyback System.map $(ROOT_IMG) FORCE
        $(call if_changed,elftoaout)
        $(call if_changed,piggy)
-
-install:
-       sh $(srctree)/$(src)/install.sh $(KERNELRELEASE) $(obj)/zImage \
-               System.map "$(INSTALL_PATH)"