summaryrefslogtreecommitdiffstats
path: root/scripts/package
diff options
context:
space:
mode:
authorCarlos de Paula <me@carlosedp.com>2021-03-16 13:02:43 -0300
committerPalmer Dabbelt <palmerdabbelt@google.com>2021-03-29 23:13:30 -0700
commit7d0bc44bd0ea163a251d4aa778d1b6fcf6174d22 (patch)
treebfb3dde24819f8b11d011a97d39ebda4c1cdb4d0 /scripts/package
parent2da073c19641bb6820c3591d3d865120263f14e8 (diff)
downloadlinux-7d0bc44bd0ea163a251d4aa778d1b6fcf6174d22.tar.gz
linux-7d0bc44bd0ea163a251d4aa778d1b6fcf6174d22.tar.bz2
linux-7d0bc44bd0ea163a251d4aa778d1b6fcf6174d22.zip
kbuild: buildtar: add riscv support
Make 'make tar-pkg' and 'tarbz2-pkg' work on riscv. Signed-off-by: Carlos de Paula <me@carlosedp.com> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'scripts/package')
-rwxr-xr-xscripts/package/buildtar8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/package/buildtar b/scripts/package/buildtar
index 936198a90477..221aa7df008d 100755
--- a/scripts/package/buildtar
+++ b/scripts/package/buildtar
@@ -125,6 +125,14 @@ case "${ARCH}" in
fi
done
;;
+ riscv)
+ for i in Image.bz2 Image.gz Image; do
+ if [ -f "${objtree}/arch/riscv/boot/${i}" ] ; then
+ cp -v -- "${objtree}/arch/riscv/boot/${i}" "${tmpdir}/boot/vmlinux-${KERNELRELEASE}"
+ break
+ fi
+ done
+ ;;
*)
[ -f "${KBUILD_IMAGE}" ] && cp -v -- "${KBUILD_IMAGE}" "${tmpdir}/boot/vmlinux-kbuild-${KERNELRELEASE}"
echo "" >&2