Skip to content

Commit

Permalink
kbuild: buildtar: add riscv support
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Carlos de Paula authored and Palmer Dabbelt committed Mar 30, 2021
1 parent 2da073c commit 7d0bc44
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/package/buildtar
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7d0bc44

Please sign in to comment.