Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kbuild: buildtar: install riscv compressed images as vmlinuz

Use the KBUILD_IMAGE variable to determine the right kernel image to
install and install compressed images to /boot/vmlinuz-$version like the
'make install' target already does.

Signed-off-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

authored by

Emil Renner Berthing and committed by
Masahiro Yamada
a0b49a91 1c369b6c

+8 -10
+8 -10
scripts/package/buildtar
··· 54 54 # Install arch-specific kernel image(s) 55 55 # 56 56 # Note: 57 - # mips, arm64, and riscv copy the first image found. This may not produce 58 - # the desired outcome because it may pick up a stale file remaining in the 59 - # build tree. 57 + # mips and arm64 copy the first image found. This may not produce the desired 58 + # outcome because it may pick up a stale file remaining in the build tree. 60 59 # 61 60 case "${ARCH}" in 62 61 alpha) ··· 97 98 done 98 99 ;; 99 100 riscv) 100 - # Please note the following code may copy a stale file. 101 - for i in Image.bz2 Image.gz Image; do 102 - if [ -f "${objtree}/arch/riscv/boot/${i}" ] ; then 103 - cp -v -- "${objtree}/arch/riscv/boot/${i}" "${tmpdir}/boot/vmlinux-${KERNELRELEASE}" 104 - break 105 - fi 106 - done 101 + case "${KBUILD_IMAGE##*/}" in 102 + Image.*|vmlinuz.efi) 103 + cp -v -- "${KBUILD_IMAGE}" "${tmpdir}/boot/vmlinuz-${KERNELRELEASE}";; 104 + *) 105 + cp -v -- "${KBUILD_IMAGE}" "${tmpdir}/boot/vmlinux-${KERNELRELEASE}";; 106 + esac 107 107 ;; 108 108 *) 109 109 cp -v -- "${KBUILD_IMAGE}" "${tmpdir}/boot/vmlinuz-${KERNELRELEASE}"