kbuild: factor out the common installation code into scripts/install.sh
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 3 May 2022 02:47:16 +0000 (11:47 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 11 May 2022 12:45:53 +0000 (21:45 +0900)
commitf774f5bb87d132b48bc4a99598c45f35121ac054
tree0a2dc74e70400523f9815d72a68d5264cbf2253a
parentf18379a30271c0289c2d0e1074e1ed633bfd708c
kbuild: factor out the common installation code into scripts/install.sh

Many architectures have similar install.sh scripts.

The first half is really generic; it verifies that the kernel image
and System.map exist, then executes ~/bin/${INSTALLKERNEL} or
/sbin/${INSTALLKERNEL} if available.

The second half is kind of arch-specific; it copies the kernel image
and System.map to the destination, but the code is slightly different.

Factor out the generic part into scripts/install.sh.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <n.schier@avm.de>
24 files changed:
Makefile
arch/arm/Makefile
arch/arm/boot/install.sh [changed mode: 0644->0755]
arch/arm64/Makefile
arch/arm64/boot/install.sh [changed mode: 0644->0755]
arch/ia64/Makefile
arch/ia64/install.sh [changed mode: 0644->0755]
arch/m68k/Makefile
arch/m68k/install.sh [changed mode: 0644->0755]
arch/nios2/Makefile
arch/nios2/boot/install.sh [changed mode: 0644->0755]
arch/parisc/Makefile
arch/parisc/install.sh [changed mode: 0644->0755]
arch/powerpc/Makefile
arch/powerpc/boot/install.sh [changed mode: 0644->0755]
arch/riscv/Makefile
arch/riscv/boot/install.sh [changed mode: 0644->0755]
arch/s390/Makefile
arch/s390/boot/install.sh [changed mode: 0644->0755]
arch/sparc/Makefile
arch/sparc/boot/install.sh [changed mode: 0644->0755]
arch/x86/Makefile
arch/x86/boot/install.sh [changed mode: 0644->0755]
scripts/install.sh [new file with mode: 0755]