Commit a0b49a91 authored by Emil Renner Berthing's avatar Emil Renner Berthing Committed by Masahiro Yamada

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: default avatarEmil Renner Berthing <emil.renner.berthing@canonical.com>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 1c369b6c
...@@ -54,9 +54,8 @@ cp -v -- "${objtree}/vmlinux" "${tmpdir}/boot/vmlinux-${KERNELRELEASE}" ...@@ -54,9 +54,8 @@ cp -v -- "${objtree}/vmlinux" "${tmpdir}/boot/vmlinux-${KERNELRELEASE}"
# Install arch-specific kernel image(s) # Install arch-specific kernel image(s)
# #
# Note: # Note:
# mips, arm64, and riscv copy the first image found. This may not produce # mips and arm64 copy the first image found. This may not produce the desired
# the desired outcome because it may pick up a stale file remaining in the # outcome because it may pick up a stale file remaining in the build tree.
# build tree.
# #
case "${ARCH}" in case "${ARCH}" in
alpha) alpha)
...@@ -98,13 +97,12 @@ case "${ARCH}" in ...@@ -98,13 +97,12 @@ case "${ARCH}" in
done done
;; ;;
riscv) riscv)
# Please note the following code may copy a stale file. case "${KBUILD_IMAGE##*/}" in
for i in Image.bz2 Image.gz Image; do Image.*|vmlinuz.efi)
if [ -f "${objtree}/arch/riscv/boot/${i}" ] ; then cp -v -- "${KBUILD_IMAGE}" "${tmpdir}/boot/vmlinuz-${KERNELRELEASE}";;
cp -v -- "${objtree}/arch/riscv/boot/${i}" "${tmpdir}/boot/vmlinux-${KERNELRELEASE}" *)
break cp -v -- "${KBUILD_IMAGE}" "${tmpdir}/boot/vmlinux-${KERNELRELEASE}";;
fi esac
done
;; ;;
*) *)
cp -v -- "${KBUILD_IMAGE}" "${tmpdir}/boot/vmlinuz-${KERNELRELEASE}" cp -v -- "${KBUILD_IMAGE}" "${tmpdir}/boot/vmlinuz-${KERNELRELEASE}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment