diff mbox series

kbuild: buildtar: add riscv support

Message ID 20210316160242.61712-1-me@carlosedp.com (mailing list archive)
State New, archived
Headers show
Series kbuild: buildtar: add riscv support | expand

Commit Message

Carlos de Paula March 16, 2021, 4:02 p.m. UTC
Make 'make tar-pkg' and 'tarbz2-pkg' work on riscv.

Signed-off-by: Carlos de Paula <me@carlosedp.com>
---
 scripts/package/buildtar | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Palmer Dabbelt March 30, 2021, 5:06 a.m. UTC | #1
On Tue, 16 Mar 2021 09:02:43 PDT (-0700), me@carlosedp.com wrote:
> Make 'make tar-pkg' and 'tarbz2-pkg' work on riscv.
>
> Signed-off-by: Carlos de Paula <me@carlosedp.com>
> ---
>  scripts/package/buildtar | 8 ++++++++
>  1 file changed, 8 insertions(+)
>
> diff --git a/scripts/package/buildtar b/scripts/package/buildtar
> index 936198a90477..221aa7df008d 100755
> --- a/scripts/package/buildtar
> +++ b/scripts/package/buildtar
> @@ -123,10 +123,18 @@ case "${ARCH}" in
>  				cp -v -- "${objtree}/arch/arm64/boot/${i}" "${tmpdir}/boot/vmlinuz-${KERNELRELEASE}"
>  				break
>  			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
>  		echo '** ** **  WARNING  ** ** **' >&2
>  		echo "" >&2

Thanks, this is on for-next.
diff mbox series

Patch

diff --git a/scripts/package/buildtar b/scripts/package/buildtar
index 936198a90477..221aa7df008d 100755
--- a/scripts/package/buildtar
+++ b/scripts/package/buildtar
@@ -123,10 +123,18 @@  case "${ARCH}" in
 				cp -v -- "${objtree}/arch/arm64/boot/${i}" "${tmpdir}/boot/vmlinuz-${KERNELRELEASE}"
 				break
 			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
 		echo '** ** **  WARNING  ** ** **' >&2
 		echo "" >&2