Commit Graph

1 Commits

Author SHA1 Message Date
Lenny Szubowicz 5d77fa4842 kbuild: factor out the common installation code into scripts/install.sh
JIRA: https://issues.redhat.com/browse/RHEL-25537

This is a partial backport of upstream commit f774f5bb87d1 ("kbuild:
factor out the common installation code into scripts/install.sh")
of only the changes that affect an arm64 kernel install.

The subsequent backport of upstream c37b830fef13 ("arm64: efi: enable
generic EFI compressed boot") depends on these changes for the
correct operation of "make zinstall".

Conflicts:
    arch/{arm,ia64,m68k,nios2,parisc,powerpc,riscv,s390,sparc,x86}
    -Skipping build and install changes for all arches except arm64
    Makefile
    -Need to retain one line that is otherwise deleted by the upstream
     patch because this is only a partial backport for arm64.
     This is noted by a RHEL-only comment in the Makefile.

commit f774f5bb87d132b48bc4a99598c45f35121ac054
Author: Masahiro Yamada <masahiroy@kernel.org>
Date:   Tue May 3 11:47:16 2022 +0900

    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>

Signed-off-by: Lenny Szubowicz <lszubowi@redhat.com>
2024-04-10 21:00:29 -04:00