Skip to contentSkip to conversation

sparc: move the install rule to arch/sparc/Makefile

PATCH New Masahiro Yamada 1 participant 1 message Jul 29, 2021 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sparc: move the install rule to arch/sparc/Makefile

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.

---

 arch/sparc/Makefile      | 3 ++-
 arch/sparc/boot/Makefile | 4 ----
 2 files changed, 2 insertions(+), 5 deletions(-)
arch/sparc/Makefile +2 -1
index 4e65245bc755..24fb5a99f439 100644
@@ -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)
arch/sparc/boot/Makefile +0 -4
index 380e2b018992..849236d4eca4 100644
@@ -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)"
Signature · 1 line
2.27.0