[RFC] buildtar: add case for riscv architecture

From: Aurabindo Jayamohanan
Date: Wed Sep 11 2019 - 03:07:18 EST


Hi,

I would like to know if something extra needs to be done other than copying compressed kernel image, when making tar package for riscv architecture. Please see the attached patch.

--

Thanks and Regards,
Aurabindo Jayamohanan
From 86feb93c62daa61314df0bbe1a11272c23b1eadb Mon Sep 17 00:00:00 2001
From: Aurabindo Jayamohanan <mail@xxxxxxxxxxxx>
Date: Thu, 5 Sep 2019 12:52:45 +0530
Subject: [PATCH] buildtar: add riscv case

Copy compressed kernel image into tarball root. Similar
action for both arm64 and riscv architectures.

Signed-off-by: Aurabindo Jayamohanan <mail@xxxxxxxxxxxx>
---
scripts/package/buildtar | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/package/buildtar b/scripts/package/buildtar
index 2f66c81e4021..388d0fcbe8c2 100755
--- a/scripts/package/buildtar
+++ b/scripts/package/buildtar
@@ -105,10 +105,10 @@ case "${ARCH}" in
cp -v -- "${objtree}/vmlinux" "${tmpdir}/boot/vmlinux-${KERNELRELEASE}"
fi
;;
- arm64)
+ arm64|riscv)
for i in Image.bz2 Image.gz Image.lz4 Image.lzma Image.lzo ; do
- if [ -f "${objtree}/arch/arm64/boot/${i}" ] ; then
- cp -v -- "${objtree}/arch/arm64/boot/${i}" "${tmpdir}/boot/vmlinuz-${KERNELRELEASE}"
+ if [ -f "${objtree}/arch/${ARCH}/boot/${i}" ] ; then
+ cp -v -- "${objtree}/arch/${ARCH}/boot/${i}" "${tmpdir}/boot/vmlinuz-${KERNELRELEASE}"
break
fi
done
--
2.23.0