]> git.baikalelectronics.ru Git - kernel.git/commitdiff
powerpc: move the install rule to arch/powerpc/Makefile
authorMasahiro Yamada <masahiroy@kernel.org>
Thu, 29 Jul 2021 14:19:37 +0000 (23:19 +0900)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 4 Aug 2021 00:53:39 +0000 (10:53 +1000)
Currently, the install target in arch/powerpc/Makefile descends into
arch/powerpc/boot/Makefile to invoke the shell script, but there is no
good reason to do so.

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

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210729141937.445051-3-masahiroy@kernel.org
arch/powerpc/Makefile
arch/powerpc/boot/Makefile

index 6505d66f11934b500cfc58be3e12149e94c60bf6..9aaf1abbc6414c453cfc9b18c4e835867fba4eff 100644 (file)
@@ -407,7 +407,8 @@ endef
 
 PHONY += install
 install:
-       $(Q)$(MAKE) $(build)=$(boot) install
+       sh -x $(srctree)/$(boot)/install.sh "$(KERNELRELEASE)" vmlinux \
+       System.map "$(INSTALL_PATH)"
 
 archclean:
        $(Q)$(MAKE) $(clean)=$(boot)
index 0d165bd98b6185426eb0949b220afec2f38add8a..10c0fb306f15f61ad03716b7a30801f0ef07a3fb 100644 (file)
@@ -444,12 +444,6 @@ $(obj)/zImage:             $(addprefix $(obj)/, $(image-y))
 $(obj)/zImage.initrd:  $(addprefix $(obj)/, $(initrd-y))
        $(Q)rm -f $@; ln $< $@
 
-# Only install the vmlinux
-install:
-       sh -x $(srctree)/$(src)/install.sh "$(KERNELRELEASE)" vmlinux System.map "$(INSTALL_PATH)"
-
-PHONY += install
-
 # anything not in $(targets)
 clean-files += $(image-) $(initrd-) cuImage.* dtbImage.* treeImage.* \
        zImage zImage.initrd zImage.chrp zImage.coff zImage.holly \